diff --git a/phpgwapi/inc/class.validator.inc.php b/phpgwapi/inc/class.validator.inc.php index acf73d6835..77ca1ee451 100644 --- a/phpgwapi/inc/class.validator.inc.php +++ b/phpgwapi/inc/class.validator.inc.php @@ -29,7 +29,7 @@ /* check if string contains any whitespace */ function has_space ($text) { - return ereg('( |\n|\t|\r)+', $text); + return ereg("( |\n|\t|\r)+", $text); } function chconvert ($fragment) @@ -50,7 +50,7 @@ /* strips all whitespace from a string */ function strip_space ($text) { - return ereg('( |\n|\t|\r)+', '', $text); + return ereg_replace("( |\n|\t|\r)+", '', $text); } function is_allnumbers ($text)