Update of /cvsroot/phpwiki/phpwiki/lib
In directory usw-pr-cvs1:/tmp/cvs-serv8020/lib
Modified Files:
config.php
Log Message:
(pcre_fix_posix_classes): Fix test for working posix character classes.
Carsten reports that on Mac OS X, character class seem to work with
ASCII chars, but they don't ever work with the international characters.
This fix activates the kluge/workaround in that case.
Index: config.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/config.php,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -r1.47 -r1.48
*** config.php 2001/12/11 22:41:39 1.47
--- config.php 2001/12/17 02:08:58 1.48
***************
*** 131,135 ****
// First check to see if our PCRE lib supports POSIX character
// classes. If it does, there's nothing to do.
! if (preg_match('/[[:upper:]]/', 'A'))
return $regexp;
--- 131,135 ----
// First check to see if our PCRE lib supports POSIX character
// classes. If it does, there's nothing to do.
! if (preg_match('/[[:upper:]]/', 'Ä'))
return $regexp;
|