From 4c95da6a5f9a5d9b6a13aca42a138568e99073ed Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 15 May 2014 22:46:16 +0200 Subject: [PATCH] Revert "Use realpath() to secure file and path names." This reverts commit be3ab368cc0fc436205faf22c910c96a5937bf5e. --- .../directory/class_FrameworkDirectoryPointer.php | 3 --- .../file_directories/input/class_FrameworkFileInputPointer.php | 3 --- .../io/class_FrameworkFileInputOutputPointer.php | 3 --- .../output/class_FrameworkFileOutputPointer.php | 3 --- 4 files changed, 12 deletions(-) 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 -- 2.39.5