소스 검색

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 년 전
부모
커밋
e566fef3ee
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
 	 }