aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_upload.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-10-07 17:40:07 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-10-07 17:40:07 +0000
commit485935e1f1a3a773260cda0b7ac3f3800dca990e (patch)
treeef8a8069f948d96bc86787cc30ea8fe1e3239837 /phpBB/includes/functions_upload.php
parenta7df65168c3380e50fbe84d8f9e74274b1cc74ff (diff)
downloadforums-485935e1f1a3a773260cda0b7ac3f3800dca990e.tar
forums-485935e1f1a3a773260cda0b7ac3f3800dca990e.tar.gz
forums-485935e1f1a3a773260cda0b7ac3f3800dca990e.tar.bz2
forums-485935e1f1a3a773260cda0b7ac3f3800dca990e.tar.xz
forums-485935e1f1a3a773260cda0b7ac3f3800dca990e.zip
he braces style is deprecated as of PHP 6
git-svn-id: file:///svn/phpbb/trunk@6459 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_upload.php')
-rw-r--r--phpBB/includes/functions_upload.php15
1 files changed, 0 insertions, 15 deletions
diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php
index 6b5d043bae..a7a76cf526 100644
--- a/phpBB/includes/functions_upload.php
+++ b/phpBB/includes/functions_upload.php
@@ -226,21 +226,6 @@ class filespec
return false;
}
-
-/*
- // Adjust destination path (no trailing slash)
- if ($destination{(sizeof($destination)-1)} == '/' || $destination{(sizeof($destination)-1)} == '\\')
- {
- $destination = substr($destination, 0, sizeof($destination)-2);
- }
-
- $destination = str_replace(array('../', '..\\', './', '.\\'), '', $destination);
- if ($destination && ($destination{0} == '/' || $destination{0} == "\\"))
- {
- $destination = '';
- }
-*/
-
// We need to trust the admin in specifying valid upload directories and an attacker not being able to overwrite it...
$this->destination_path = $phpbb_root_path . $destination;