Browse Source

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

Tyler Akins 24 years ago
parent
commit
e566fef3ee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      functions/addressbook.php

+ 1 - 1
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;
 	 }