Update core.php

This commit is contained in:
Eric Johansson (neku) 2015-04-05 22:44:41 +02:00
parent 40d98facd3
commit a70886b359

View File

@ -12,6 +12,7 @@ function save_file ($file, $name, $arg){
}
break;
case 'custom_original':
$name = stripslashes(str_replace('/', '', $name));
$name = strip_tags(preg_replace('/\s+/', '', $name));
$file_name = gen_name('custom_original', $name);
while(file_exists($path.$file_name)){