bug #3137351 User preferences and hide_db
This commit is contained in:
@@ -307,7 +307,9 @@ function validate_regex($path, $values)
|
||||
test_php_errormsg();
|
||||
|
||||
$matches = array();
|
||||
preg_match($values[$path], '', $matches);
|
||||
// in libraries/List_Database.class.php _checkHideDatabase(),
|
||||
// a '/' is used as the delimiter for hide_db
|
||||
preg_match('/' . $values[$path] . '/', '', $matches);
|
||||
|
||||
test_php_errormsg(false);
|
||||
|
||||
@@ -457,4 +459,4 @@ function validate_upper_bound($path, $values, $max_value)
|
||||
$result = $values[$path] <= $max_value;
|
||||
return array($path => ($result ? '' : sprintf(__('Value must be equal or lower than %s'), $max_value)));
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user