mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 09:58:04 +02:00
(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 */
|
/* check if string contains any whitespace */
|
||||||
function has_space ($text)
|
function has_space ($text)
|
||||||
{
|
{
|
||||||
return ereg('( |\n|\t|\r)+', $text);
|
return ereg("( |\n|\t|\r)+", $text);
|
||||||
}
|
}
|
||||||
|
|
||||||
function chconvert ($fragment)
|
function chconvert ($fragment)
|
||||||
@ -50,7 +50,7 @@
|
|||||||
/* strips all whitespace from a string */
|
/* strips all whitespace from a string */
|
||||||
function strip_space ($text)
|
function strip_space ($text)
|
||||||
{
|
{
|
||||||
return ereg('( |\n|\t|\r)+', '', $text);
|
return ereg_replace("( |\n|\t|\r)+", '', $text);
|
||||||
}
|
}
|
||||||
|
|
||||||
function is_allnumbers ($text)
|
function is_allnumbers ($text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user