From 0160fb8c5e3e095446f1450d10bb510416758d88 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 1 Jun 2012 10:12:15 +0200 Subject: [PATCH] Fix: an url must be with url escape format. --- htdocs/projet/document.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/projet/document.php b/htdocs/projet/document.php index 39ae5148024..c9fd4fcde0d 100644 --- a/htdocs/projet/document.php +++ b/htdocs/projet/document.php @@ -155,7 +155,7 @@ if ($id > 0 || ! empty($ref)) if ($action == 'delete') { - $ret=$form->form_confirm($_SERVER["PHP_SELF"]."?id=".$_GET["id"]."&urlfile=".$_GET['urlfile'],$langs->trans("DeleteAFile"),$langs->trans("ConfirmDeleteAFile"),"confirm_delete",'','',1); + $ret=$form->form_confirm($_SERVER["PHP_SELF"]."?id=".$_GET["id"]."&urlfile=".urlencode(GETPOST("urlfile")),$langs->trans("DeleteAFile"),$langs->trans("ConfirmDeleteAFile"),"confirm_delete",'','',1); if ($ret == 'html') print '
'; }