projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Stop using deprecated ereg() functions (#2820952)
[squirrelmail.git]
/
functions
/
strings.php
diff --git
a/functions/strings.php
b/functions/strings.php
index 999fe1a9727a352fc6d0ce2572375b499c1ec04d..ca09684ab416c3fc52b147d2affb802e1513883b 100644
(file)
--- a/
functions/strings.php
+++ b/
functions/strings.php
@@
-349,7
+349,7
@@
function sqWordWrap(&$line, $wrap, $charset='') {
}
}
-
ereg("^([\t >]*)([^\t >].*)?$"
, $line, $regs);
+
preg_match('/^([\t >]*)([^\t >].*)?$/'
, $line, $regs);
$beginning_spaces = $regs[1];
if (isset($regs[2])) {
$words = explode(' ', $regs[2]);