From 74bd0763f3df2ec1b076555fbffa92fe7b4cddb2 Mon Sep 17 00:00:00 2001 From: fidian Date: Mon, 5 Feb 2001 21:13:53 +0000 Subject: [PATCH] For all strings in regexps: * PHP first unescapes the string * PHP sends string to ereg, ereg_replace, or whatever * ereg/ereg_replace/whatever unescapes the string to make the regexp git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1057 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/addressbook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/addressbook.php b/functions/addressbook.php index 4d043555..fe2796fd 100644 --- a/functions/addressbook.php +++ b/functions/addressbook.php @@ -280,7 +280,7 @@ $userdata['nickname'] = $userdata['email']; } - if(eregi('[ \:\|\#\"\!]', $userdata['nickname'])) { + if(eregi('[ \\:\\|\\#\\"\\!]', $userdata['nickname'])) { $this->error = _("Nickname contain illegal characters"); return false; } -- 2.25.1