From 4366df0a56fc76485668a71ff2acc4d8f36b2653 Mon Sep 17 00:00:00 2001 From: nixxquality Date: Wed, 18 Feb 2015 15:12:28 +0100 Subject: [PATCH] URL encode the returned filename --- includes/core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/core.php b/includes/core.php index 3be8288..8e4c0bf 100644 --- a/includes/core.php +++ b/includes/core.php @@ -22,7 +22,7 @@ function save_file ($file, $name, $arg){ //Move the file to the above location with said filename move_uploaded_file($file,$path.$file_name); //Return url+filename to the user - echo 'http://a.uguu.se/'.$file_name; + echo 'http://a.uguu.se/'.urlencode($file_name); } function gen_name($arg, $in){ $chars = 'abcdefghijklmnopqrstuvwxyz';