replaced ctype_digit() with is_numeric()

This commit is contained in:
Sebastian Mendel
2007-03-27 11:27:36 +00:00
parent 4de60460b3
commit e63059cbaa
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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;