forked from extern/egroupware
(Fix for bug #896172) Corrected quote type for regex matching; Changed to proper function for string replacement
This commit is contained in:
parent
56309597dd
commit
faeb3a6a2f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user