mirror of
https://github.com/nokonoko/Uguu.git
synced 2024-01-06 13:35:15 +00:00
Update core.php
This commit is contained in:
parent
16626ac877
commit
7835f2ba92
2
core.php
2
core.php
@ -4,7 +4,7 @@ function save_file ($file, $name){
|
||||
$path='/home/neku/www/files/';
|
||||
//Generate prefix, put together name and remove tags/whitespace
|
||||
$file_name = strip_tags(preg_replace('/\s+/', '', $name));
|
||||
$file_name = gen_name(file_name);
|
||||
$file_name = gen_name($file_name);
|
||||
while(file_exists($path.$file_name)){
|
||||
$file_name = gen_name(file_name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user