Fix: regression. quote was no more supported.

This commit is contained in:
Laurent Destailleur 2012-06-01 09:34:43 +02:00
parent 52f270d623
commit a51114d571

View File

@ -496,7 +496,7 @@ function dol_unescapefile($filename)
// Remove path information and dots around the filename, to prevent uploading // Remove path information and dots around the filename, to prevent uploading
// into different directories or replacing hidden system files. // into different directories or replacing hidden system files.
// Also remove control characters and spaces (\x00..\x20) around the filename: // Also remove control characters and spaces (\x00..\x20) around the filename:
return trim(basename(stripslashes($filename)), ".\x00..\x20"); return trim(basename($filename), ".\x00..\x20");
} }
/** /**