mirror of
https://github.com/nokonoko/Uguu.git
synced 2024-01-06 13:35:15 +00:00
URL encode the returned filename
This commit is contained in:
parent
a7f8ccabdd
commit
4366df0a56
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user