aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
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);