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';