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
// 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");
}
/**
@ -765,7 +765,7 @@ function dol_delete_preview($object)
{
global $langs,$conf;
require_once(DOL_DOCUMENT_ROOT."/core/lib/files.lib.php");
$element = $object->element;
$dir = $conf->$element->dir_output;