From 5647ef073f20650dcc9a19df0fe7cd1e7f2a70ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 6 Oct 2003 10:06:20 +0000 Subject: [PATCH] Do not include query in redirect url if too long. --- ChangeLog | 3 +++ tbl_replace.php3 | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7f158a8bd..4e9d94eda 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-10-06 Michal Cihar + * tbl_replace.php3: Do not include query in redirect url if too long. + 2003-10-02 Marc Delisle * libraries/grab_globals.lib.php3: bug 807047, protect POST variables against cookies of the same name diff --git a/tbl_replace.php3 b/tbl_replace.php3 index 26280a5f6..92fecb93d 100755 --- a/tbl_replace.php3 +++ b/tbl_replace.php3 @@ -204,7 +204,8 @@ if (!$result) { // if we have seen binary, // we do not append the query to the Location so it won't be displayed // on the resulting page - $add_query = (!$seen_binary ? '&disp_query=' . urlencode($sql_query) : ''); + // Nijel: we also need to limit size of url... + $add_query = (!$seen_binary && strlen($sql_query) < 1024 ? '&disp_query=' . urlencode($sql_query) : ''); header('Location: ' . $cfg['PmaAbsoluteUri'] . $goto . '&disp_message=' . urlencode($message) . $add_query); } exit();