aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-14 03:24:59 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-14 03:24:59 +0000
commit964aae2967218c594fe5fcbadfdcada731ef2a6e (patch)
treed6fec7cb2195e100d9f7f5c192984535018fadb5 /engine
parent5a551760b09ad40f83f624c0fc22c5e677d0910e (diff)
downloadelgg-964aae2967218c594fe5fcbadfdcada731ef2a6e.tar.gz
elgg-964aae2967218c594fe5fcbadfdcada731ef2a6e.tar.bz2
sanitise_filepath() removes double /s.
git-svn-id: http://code.elgg.org/elgg/trunk@7615 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/elgglib.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index fe4e3e9d9..cb0ee4e72 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -447,6 +447,7 @@ function sanitise_filepath($path, $append_slash = TRUE) {
// Convert to correct UNIX paths
$path = str_replace('\\', '/', $path);
$path = str_replace('../', '/', $path);
+ $path = str_replace('//', '/', $path);
// Sort trailing slash
$path = trim($path);