diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-14 03:24:59 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-14 03:24:59 +0000 |
commit | 964aae2967218c594fe5fcbadfdcada731ef2a6e (patch) | |
tree | d6fec7cb2195e100d9f7f5c192984535018fadb5 /engine | |
parent | 5a551760b09ad40f83f624c0fc22c5e677d0910e (diff) | |
download | elgg-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.php | 1 |
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); |