summaryrefslogtreecommitdiff
path: root/tmp-upload
diff options
context:
space:
mode:
Diffstat (limited to 'tmp-upload')
-rwxr-xr-xtmp-upload2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmp-upload b/tmp-upload
index 6aa070c..9b5d4d3 100755
--- a/tmp-upload
+++ b/tmp-upload
@@ -34,7 +34,7 @@ function get_mime_type($file) {
return false;
}
-$url = $_SERVER['REQUEST_URI'];
+$url = urldecode($_SERVER['REQUEST_URI']);
/* Simply returning false causes PHP to parse (index).php. Unwanted,
* therefore serve it here. First check whether the path is within the