URL encode the returned filename

This commit is contained in:
nixxquality 2015-02-18 15:12:28 +01:00
parent a7f8ccabdd
commit 4366df0a56
1 changed files with 1 additions and 1 deletions

View File

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