projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
parseAddrs now always returns an array (expected behavior)
[squirrelmail.git]
/
functions
/
strings.php
diff --git
a/functions/strings.php
b/functions/strings.php
index ed1224e6d43f6642b61049651d49c94ec29d6574..8903155f73f68e98e331b9d8d2b5e1a64b5e3b79 100644
(file)
--- a/
functions/strings.php
+++ b/
functions/strings.php
@@
-120,7
+120,7
@@
/* Be cautious of "user@host.com" */
function parseAddrs($text) {
if (trim($text) == "")
- return;
+ return
array()
;
$text = str_replace(" ", "", $text);
$text = ereg_replace('"[^"]*"', "", $text);
$text = ereg_replace("\([^\)]*\)", "", $text);