bug #3137351 User preferences and hide_db

This commit is contained in:
Marc Delisle
2010-12-14 12:30:40 -05:00
parent b3cab15663
commit 55c2dcb664

View File

@@ -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)));
}
?>
?>