Revert "Use realpath() to secure file and path names."
authorRoland Haeder <roland@mxchange.org>
Thu, 15 May 2014 20:46:16 +0000 (22:46 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 15 May 2014 20:46:16 +0000 (22:46 +0200)
This reverts commit be3ab368cc0fc436205faf22c910c96a5937bf5e.

inc/classes/main/file_directories/directory/class_FrameworkDirectoryPointer.php
inc/classes/main/file_directories/input/class_FrameworkFileInputPointer.php
inc/classes/main/file_directories/io/class_FrameworkFileInputOutputPointer.php
inc/classes/main/file_directories/output/class_FrameworkFileOutputPointer.php

index a04a8dd..da22040 100644 (file)
@@ -68,9 +68,6 @@ class FrameworkDirectoryPointer extends BaseFrameworkSystem {
         * @todo        Get rid of inConstructor, could be old-lost code.
         */
        public static final function createFrameworkDirectoryPointer ($pathName, $inConstructor = FALSE) {
-               // Secure with realpath()
-               $pathName = realpath($pathName);
-
                // Some pre-sanity checks...
                if (is_null($pathName)) {
                        // No pathname given
index bca7a18..f70ef5a 100644 (file)
@@ -42,9 +42,6 @@ class FrameworkFileInputPointer extends BaseFileIo {
         * @return      void
         */
        public static final function createFrameworkFileInputPointer ($fileName) {
-               // Secure with realpath()
-               $fileName = realpath($fileName);
-
                // Some pre-sanity checks...
                if ((is_null($fileName)) || (empty($fileName))) {
                        // No filename given
index 04d8cbc..824df45 100644 (file)
@@ -44,9 +44,6 @@ class FrameworkFileInputOutputPointer extends BaseFileIo {
         * @throws      FileIoException                 If fopen() returns not a file resource
         */
        public static final function createFrameworkFileInputOutputPointer ($fileName) {
-               // Secure with realpath()
-               $fileName = realpath($fileName);
-
                // Some pre-sanity checks...
                if ((is_null($fileName)) || (empty($fileName))) {
                        // No filename given
index 907495c..1af2697 100644 (file)
@@ -43,9 +43,6 @@ class FrameworkFileOutputPointer extends BaseFileIo {
         * @return      void
         */
        public static final function createFrameworkFileOutputPointer ($fileName, $mode) {
-               // Secure with realpath()
-               $fileName = realpath($fileName);
-
                // Some pre-sanity checks...
                if (is_null($fileName)) {
                        // No filename given