Fix XSS
This commit is contained in:
parent
304a71710e
commit
a21b015cbb
@ -282,7 +282,7 @@ print "</tr>\n";
|
|||||||
// FILTRES
|
// FILTRES
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td class="liste_titre" align="left" width="50">';
|
print '<td class="liste_titre" align="left" width="50">';
|
||||||
print '<input class="flat" size="4" type="text" name="search_ref" value="'.$search_ref.'">';
|
print '<input class="flat" size="4" type="text" name="search_ref" value="'.dol_escape_htmltag($search_ref).'">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// DATE CREATE
|
// DATE CREATE
|
||||||
|
|||||||
@ -310,10 +310,11 @@ if (empty($reshook))
|
|||||||
{
|
{
|
||||||
$langs->load("other");
|
$langs->load("other");
|
||||||
$upload_dir = $conf->projet->dir_output . "/";
|
$upload_dir = $conf->projet->dir_output . "/";
|
||||||
$file = $upload_dir . '/' . GETPOST('file');
|
$urlfile=GETPOST('urlfile','alpha');
|
||||||
|
$file = $upload_dir . '/' . $filetodelete;
|
||||||
$ret=dol_delete_file($file);
|
$ret=dol_delete_file($file);
|
||||||
if ($ret) setEventMessage($langs->trans("FileWasRemoved", GETPOST('urlfile')));
|
if ($ret) setEventMessage($langs->trans("FileWasRemoved", $urlfile));
|
||||||
else setEventMessage($langs->trans("ErrorFailToDeleteFile", GETPOST('urlfile')), 'errors');
|
else setEventMessage($langs->trans("ErrorFailToDeleteFile", $urlfile), 'errors');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user