add missing validation for TextareaRows
fix warning in FormDisplay while importing settings
This commit is contained in:
@@ -2,7 +2,4 @@ restore cache'ing in phpmyadmin.css.php
|
|||||||
make CSS for darkblue_orange
|
make CSS for darkblue_orange
|
||||||
check input escaping, $cfg is no longer safe to use
|
check input escaping, $cfg is no longer safe to use
|
||||||
|
|
||||||
preference:
|
local storage - autoload?
|
||||||
- synchronize language, theme ThemeDefault
|
|
||||||
|
|
||||||
allow to import ThemeDefault
|
|
||||||
|
@@ -130,5 +130,6 @@ $cfg_db['_validators'] = array(
|
|||||||
'Servers/1/port' => 'validate_port_number',
|
'Servers/1/port' => 'validate_port_number',
|
||||||
'Servers/1/hide_db' => 'validate_regex',
|
'Servers/1/hide_db' => 'validate_regex',
|
||||||
'TextareaCols' => 'validate_positive_number',
|
'TextareaCols' => 'validate_positive_number',
|
||||||
|
'TextareaRows' => 'validate_positive_number',
|
||||||
'TrustedProxies' => 'validate_trusted_proxies');
|
'TrustedProxies' => 'validate_trusted_proxies');
|
||||||
?>
|
?>
|
@@ -528,7 +528,9 @@ class FormDisplay
|
|||||||
break;
|
break;
|
||||||
case 'array':
|
case 'array':
|
||||||
// eliminate empty values and ensure we have an array
|
// eliminate empty values and ensure we have an array
|
||||||
$post_values = explode("\n", $_POST[$key]);
|
$post_values = is_array($_POST[$key])
|
||||||
|
? $_POST[$key]
|
||||||
|
: explode("\n", $_POST[$key]);
|
||||||
$_POST[$key] = array();
|
$_POST[$key] = array();
|
||||||
foreach ($post_values as $v) {
|
foreach ($post_values as $v) {
|
||||||
$v = trim($v);
|
$v = trim($v);
|
||||||
|
Reference in New Issue
Block a user