From 4de8977ecb16a21e2003541f4676bfd562293795 Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Sun, 5 Feb 2006 23:51:48 +0000 Subject: [PATCH] un bug de redirection quand on a une erreur d'upload (pour tester, prendre un fichier .rtf, le renommer .png, et l'uploader comme logo d'article) --- ecrire/inc_getdocument.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/ecrire/inc_getdocument.php b/ecrire/inc_getdocument.php index eb91add7b1..6746d167a8 100644 --- a/ecrire/inc_getdocument.php +++ b/ecrire/inc_getdocument.php @@ -123,13 +123,12 @@ function check_upload_error($error, $msg='') { spip_log ("erreur upload $error"); minipres($msg, '<form action="' . - _DIR_RESTREINT_ABS. - urldecode($GLOBALS['redirect']). - '"><div align="'. - $spip_lang_right. - '"><input type="submit" class="fondl" value="'. - _T('ecrire:bouton_suivant'). - ' >>"></div></form>'); + urldecode($GLOBALS['redirect']). + '" method="post"><div align="'. #ici method='post' permet d'aller au bon endroit, alors qu'en GET on perd les variables... mais c'est un hack sale. + $spip_lang_right. + '"><input type="submit" class="fondl" value="'. + _T('ecrire:bouton_suivant'). + ' >>"></div></form>'); } -- GitLab