[Phpmyadmin-git] [SCM] phpMyAdmin branch, QA_3_3, updated. RELEASE_3_3_1RC1-54-gb686640
Marc Delisle
lem9 at users.sourceforge.net
Sun Mar 14 13:51:41 CET 2010
The branch, QA_3_3 has been updated
via b686640a06916ddc65bc46f5a057990914ac091a (commit)
from 7c818d046a4c9f01a8e94b55a0726a1cc3d6a60d (commit)
- Log -----------------------------------------------------------------
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 1 +
libraries/display_tbl.lib.php | 6 +++++-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 26f8b70..f2e37d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
3.3.2.0 (not yet released)
- patch #2969449 [core] Name for MERGE engine varies depending on the
MySQL version, thanks to Dieter Adriaenssens - ruleant
+- bug #2966078 [browse] Incorrect LIMIT is saved and sticks while browsing
3.3.1.0 (not yet released)
- bug #2941037 [core] Database structure not sorted by table correctly
diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php
index 4f16ca5..f4809d3 100644
--- a/libraries/display_tbl.lib.php
+++ b/libraries/display_tbl.lib.php
@@ -1670,7 +1670,11 @@ function PMA_displayTable_checkConfigParams()
$_SESSION['tmp_user_values']['query'][$sql_key]['repeat_cells'] = $GLOBALS['cfg']['RepeatCells'];
}
- if (PMA_isValid($_REQUEST['session_max_rows'], 'numeric') || $_REQUEST['session_max_rows'] == 'all') {
+ // as this is a form value, the type is always string so we cannot
+ // use PMA_isValid($_REQUEST['session_max_rows'], 'integer')
+ if ((PMA_isValid($_REQUEST['session_max_rows'], 'numeric')
+ && (int) $_REQUEST['session_max_rows'] == $_REQUEST['session_max_rows'])
+ || $_REQUEST['session_max_rows'] == 'all') {
$_SESSION['tmp_user_values']['query'][$sql_key]['max_rows'] = $_REQUEST['session_max_rows'];
unset($_REQUEST['session_max_rows']);
} elseif (empty($_SESSION['tmp_user_values']['query'][$sql_key]['max_rows'])) {
hooks/post-receive
--
phpMyAdmin
More information about the Git
mailing list