]> git.mxchange.org Git - core.git/commitdiff
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 a04a8dd486f32ffc41913da5cecf5b176a5c29b6..da220403458c081e6531ca4f7cc5a0b937c3efd5 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 bca7a18b398dcf16a151f6d37d9a12f2dd780005..f70ef5a12b90596adb19bef552f6e50326c1ff95 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 04d8cbc9deddccbdae667f83630558989dd7d7e5..824df452eec683a41c7d534d671d835edb5962af 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 907495c711c153905e2890e95aecd6992f1c2d34..1af2697b22d7c15fe3b20826de0ce0952ce08af1 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