summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bb73170)
due to the escaping of backslashes. I've replaced it with the
faster preg_replace and used double quotes to lessen the escaping
confusion.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6849
7612ce4b-ef26-0410-bec9-
ea0150e637f0
* @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);