[Phplib-commit] CVS: php-lib-stable/php of_text.inc,1.2,1.3
Brought to you by:
nhruby,
richardarcher
From: Layne W. <lay...@us...> - 2005-02-19 15:21:35
|
Update of /cvsroot/phplib/php-lib-stable/php In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6795/php Modified Files: of_text.inc Log Message: fix $this->icase to $this->valid_icase Thanks to Frank Bax for catching this problem Index: of_text.inc =================================================================== RCS file: /cvsroot/phplib/php-lib-stable/php/of_text.inc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** of_text.inc 28 Apr 2002 03:59:32 -0000 1.2 --- of_text.inc 19 Feb 2005 15:21:25 -0000 1.3 *************** *** 80,84 **** } if ($this->valid_e) { ! $flags = ($this->icase ? "gi" : "g"); $str .= "if (window.RegExp) {\n"; $str .= " var reg = new RegExp(\"$this->valid_regex\", \"$flags\");\n"; --- 80,84 ---- } if ($this->valid_e) { ! $flags = ($this->valid_icase ? "gi" : "g"); $str .= "if (window.RegExp) {\n"; $str .= " var reg = new RegExp(\"$this->valid_regex\", \"$flags\");\n"; *************** *** 103,109 **** return $this->length_e; } ! if ($this->valid_e && (($this->icase && !eregi($this->valid_regex, $v)) || ! (!$this->icase && !ereg($this->valid_regex, $v)))) { return $this->valid_e; --- 103,109 ---- return $this->length_e; } ! if ($this->valid_e && (($this->valid_icase && !eregi($this->valid_regex, $v)) || ! (!$this->valid_icase && !ereg($this->valid_regex, $v)))) { return $this->valid_e; |