replaced ctype_digit() with is_numeric()
This commit is contained in:
@@ -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
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user