Urlencoded the message passed with the location header in sql.php3

This commit is contained in:
Loïc Chapeaux
2002-03-30 17:18:05 +00:00
parent f988b2f966
commit 4158b48e3b
2 changed files with 4 additions and 1 deletions

View File

@@ -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 <theseverus at users.sourceforge.net>.
2002-03-29 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* sql.php3, lines 456-457: swap form fields position for consistency

View File

@@ -364,7 +364,7 @@ else {
include('./' . $goto);
} // end if file_exist
else {
header('Location: ' . $cfgPmaAbsoluteUri . str_replace('&amp;', '&', $goto) . '&message=' . $message);
header('Location: ' . $cfgPmaAbsoluteUri . str_replace('&amp;', '&', $goto) . '&message=' . urlencode($message));
} // end else
exit();
} // end no rows returned