From: Roland Haeder Date: Thu, 15 May 2014 20:46:16 +0000 (+0200) Subject: Revert "Use realpath() to secure file and path names." X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4c95da6a5f9a5d9b6a13aca42a138568e99073ed;p=core.git Revert "Use realpath() to secure file and path names." This reverts commit be3ab368cc0fc436205faf22c910c96a5937bf5e. --- diff --git a/inc/classes/main/file_directories/directory/class_FrameworkDirectoryPointer.php b/inc/classes/main/file_directories/directory/class_FrameworkDirectoryPointer.php index a04a8dd4..da220403 100644 --- a/inc/classes/main/file_directories/directory/class_FrameworkDirectoryPointer.php +++ b/inc/classes/main/file_directories/directory/class_FrameworkDirectoryPointer.php @@ -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 diff --git a/inc/classes/main/file_directories/input/class_FrameworkFileInputPointer.php b/inc/classes/main/file_directories/input/class_FrameworkFileInputPointer.php index bca7a18b..f70ef5a1 100644 --- a/inc/classes/main/file_directories/input/class_FrameworkFileInputPointer.php +++ b/inc/classes/main/file_directories/input/class_FrameworkFileInputPointer.php @@ -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 diff --git a/inc/classes/main/file_directories/io/class_FrameworkFileInputOutputPointer.php b/inc/classes/main/file_directories/io/class_FrameworkFileInputOutputPointer.php index 04d8cbc9..824df452 100644 --- a/inc/classes/main/file_directories/io/class_FrameworkFileInputOutputPointer.php +++ b/inc/classes/main/file_directories/io/class_FrameworkFileInputOutputPointer.php @@ -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 diff --git a/inc/classes/main/file_directories/output/class_FrameworkFileOutputPointer.php b/inc/classes/main/file_directories/output/class_FrameworkFileOutputPointer.php index 907495c7..1af2697b 100644 --- a/inc/classes/main/file_directories/output/class_FrameworkFileOutputPointer.php +++ b/inc/classes/main/file_directories/output/class_FrameworkFileOutputPointer.php @@ -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