X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fstrings.php;h=4ff54b898bfeb95e145ed5deb259da559bf41aa0;hp=e295c4c910581e81d4f37e7384ebfed934bccb33;hb=ab1df059d97dc80d52a7f932a7b431e558197844;hpb=bb73170f4211cecafc88a6f6dc0c57aae5a9b1d7;ds=sidebyside diff --git a/functions/strings.php b/functions/strings.php index e295c4c9..4ff54b89 100644 --- 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 ereg_replace('(["\\])', '\\\\1', $str); + return preg_replace("/([\"\\\\])/", "\\\\$1", $str); } /**