diff --git a/ChangeLog b/ChangeLog index 888316417..57c189234 100644 --- a/ChangeLog +++ b/ChangeLog @@ -62,6 +62,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA - bug #1672789 [sqp] Undefined offset: 4 in sqlparser.lib.php #1674 - bug #1682044 [export] Export file even if file not selected - bug #1664212 querywindow loses url encoded characters +- replaced ctype_digit() with is_numeric() + [config] clean cookies on phpMyAdmin upgrade - bug #1674972 [export] no export with %afm% - bug #1667887 HTML maxlength diff --git a/libraries/common.inc.php b/libraries/common.inc.php index 65e6a88e3..afa534196 100644 --- a/libraries/common.inc.php +++ b/libraries/common.inc.php @@ -659,7 +659,8 @@ if (! defined('PMA_MINIMUM_COMMON')) { * by Arnold - Helder Hosting * (see FAQ 4.8) */ - if (! empty($_REQUEST['server']) && is_string($_REQUEST['server']) && ! ctype_digit($_REQUEST['server'])) { + if (! empty($_REQUEST['server']) && is_string($_REQUEST['server']) + && ! is_numeric($_REQUEST['server'])) { foreach ($cfg['Servers'] as $i => $server) { if ($server['host'] == $_REQUEST['server']) { $_REQUEST['server'] = $i;