Don't URL encode directory separator
This commit is contained in:
parent
790256de77
commit
47e93a3b2f
|
@ -46,11 +46,11 @@ function save_file ($file, $name, $arg, $type){
|
||||||
move_uploaded_file($file,CONFIG_FILES_PATH.$file_name);
|
move_uploaded_file($file,CONFIG_FILES_PATH.$file_name);
|
||||||
//Check if html or plain text should be returned
|
//Check if html or plain text should be returned
|
||||||
if($type==='tool'){
|
if($type==='tool'){
|
||||||
echo CONFIG_ROOT_URL.'/'.urlencode($file_name);
|
echo CONFIG_ROOT_URL.'/'.str_replace('%2F', '/', urlencode($file_name));
|
||||||
exit(0);
|
exit(0);
|
||||||
}elseif($type==='normal'){
|
}elseif($type==='normal'){
|
||||||
//Return url+filename to the user (HTML)
|
//Return url+filename to the user (HTML)
|
||||||
$n=urlencode($file_name);
|
$n=str_replace('%2F', '/', urlencode($file_name));
|
||||||
include_once(CONFIG_ROOT_PATH.'upload-done.php');
|
include_once(CONFIG_ROOT_PATH.'upload-done.php');
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue