From 4158b48e3b617338454557d26c2d0231d9249a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 30 Mar 2002 17:18:05 +0000 Subject: [PATCH] Urlencoded the message passed with the location header in sql.php3 --- ChangeLog | 3 +++ sql.php3 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8a54fac90..1bfb4ad1b 100755 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,9 @@ $Source$ fixed bug #536550 - DOCTYPE line contains line feeds. * lang/brazilian_portuguese.inc.php3: restored. * lang/french.inc.php3: resorted. + * Documentation.html, line 71: little xhtml1.0 fix. + * sql.php3, line 367: urlencoded the message passed with the location + header. Thanks to Severus . 2002-03-29 Loïc Chapeaux * sql.php3, lines 456-457: swap form fields position for consistency diff --git a/sql.php3 b/sql.php3 index 495ccc908..cfe00e42b 100755 --- a/sql.php3 +++ b/sql.php3 @@ -364,7 +364,7 @@ else { include('./' . $goto); } // end if file_exist else { - header('Location: ' . $cfgPmaAbsoluteUri . str_replace('&', '&', $goto) . '&message=' . $message); + header('Location: ' . $cfgPmaAbsoluteUri . str_replace('&', '&', $goto) . '&message=' . urlencode($message)); } // end else exit(); } // end no rows returned