replaced ctype_digit() with is_numeric()

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

View File

@@ -23,6 +23,7 @@ $HeadURL$
- 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

@@ -3061,7 +3061,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;