(Fix for bug #896172) Corrected quote type for regex matching; Changed to proper function for string replacement

This commit is contained in:
shrykedude 2004-02-13 04:42:47 +00:00
parent 56309597dd
commit faeb3a6a2f

View File

@ -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)