From 4b368f8b425dd147c0fca47abce57024c9bc2843 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Tue, 15 May 2007 09:09:54 +0000 Subject: [PATCH] do not URL-encode form values --- libraries/display_tbl.lib.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php index 8915e78da..75f3b54f4 100644 --- a/libraries/display_tbl.lib.php +++ b/libraries/display_tbl.lib.php @@ -224,7 +224,7 @@ function PMA_setDisplayMode(&$the_disp_mode, &$the_total) * * @see PMA_displayTable() */ -function PMA_displayTableNavigation($pos_next, $pos_prev, $encoded_query) +function PMA_displayTableNavigation($pos_next, $pos_prev, $sql_query) { global $db, $table, $goto, $dontlimitchars; global $num_rows, $unlim_num_rows, $pos, $session_max_rows; @@ -232,6 +232,8 @@ function PMA_displayTableNavigation($pos_next, $pos_prev, $encoded_query) global $is_innodb; global $showtable; + $html_sql_query = htmlentities($sql_query); + /** * @todo move this to a central place * @todo for other future table types @@ -262,7 +264,7 @@ function PMA_displayTableNavigation($pos_next, $pos_prev, $encoded_query)
- + @@ -275,7 +277,7 @@ function PMA_displayTableNavigation($pos_next, $pos_prev, $encoded_query) - + @@ -295,7 +297,7 @@ function PMA_displayTableNavigation($pos_next, $pos_prev, $encoded_query) - + @@ -341,7 +343,7 @@ function PMA_displayTableNavigation($pos_next, $pos_prev, $encoded_query) - + @@ -355,7 +357,7 @@ function PMA_displayTableNavigation($pos_next, $pos_prev, $encoded_query) - + $GLOBALS['cfg']['MaxExactCount']) { @@ -389,7 +391,7 @@ function PMA_displayTableNavigation($pos_next, $pos_prev, $encoded_query) for keep the form alignment of button < and << ?> - + @@ -1827,7 +1829,7 @@ function PMA_displayTable(&$dt_result, &$the_disp_mode, $analyzed_sql) PMA_displayResultsOperations($the_disp_mode, $analyzed_sql); } if ($is_display['nav_bar'] == '1') { - PMA_displayTableNavigation($pos_next, $pos_prev, $encoded_sql_query); + PMA_displayTableNavigation($pos_next, $pos_prev, $sql_query); echo "\n"; } elseif (!isset($GLOBALS['printview']) || $GLOBALS['printview'] != '1') { echo "\n" . '

' . "\n"; @@ -1955,7 +1957,7 @@ function PMA_displayTable(&$dt_result, &$the_disp_mode, $analyzed_sql) if ($is_display['nav_bar'] == '1') { echo '
' . "\n"; - PMA_displayTableNavigation($pos_next, $pos_prev, $encoded_sql_query); + PMA_displayTableNavigation($pos_next, $pos_prev, $sql_query); } elseif (!isset($GLOBALS['printview']) || $GLOBALS['printview'] != '1') { echo "\n" . '

' . "\n"; }