Fix: regression. quote was no more supported.
This commit is contained in:
parent
52f270d623
commit
a51114d571
@ -496,7 +496,7 @@ function dol_unescapefile($filename)
|
||||
// Remove path information and dots around the filename, to prevent uploading
|
||||
// into different directories or replacing hidden system files.
|
||||
// Also remove control characters and spaces (\x00..\x20) around the filename:
|
||||
return trim(basename(stripslashes($filename)), ".\x00..\x20");
|
||||
return trim(basename($filename), ".\x00..\x20");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user