projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix quote_imap, the ereg pattern wasn't always interpreted right
[squirrelmail.git]
/
functions
/
strings.php
diff --git
a/functions/strings.php
b/functions/strings.php
index
e295c4c
..
4ff54b8
100644
(file)
--- a/
functions/strings.php
+++ b/
functions/strings.php
@@
-458,7
+458,7
@@
function GenerateRandomString($size, $chars, $flags = 0) {
* @return string the escaped string
*/
function quoteimap($str) {
* @return string the escaped string
*/
function quoteimap($str) {
- return
ereg_replace('(["\\])', '\\\\1'
, $str);
+ return
preg_replace("/([\"\\\\])/", "\\\\$1"
, $str);
}
/**
}
/**