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