[dokuwiki] Re: [PATCH] search problems and solutions

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sat, 4 Jun 2005 22:14:23 +0200

On Sat, 4 Jun 2005 22:06:27 +0200
Matthias Grimm <matthiasgrimm@xxxxxxxxxxxxxxxxxxxxx> wrote:

> I did some additional tests and found a strange behaviour:
> 
> I search for "-test" and the search window locked up (the progress bar
> waved forever). After some debugging I found out that the execution of
> the regular expression "^((?!test).)*$" through the function
> preg_match_all() on the file wiki:syntax.txt will crash my PHP
> (segfault).

I just commented out your check for poswords and tried it. No crash but an 
error about a missing needle in mb_strpos. I guess it happend when trying to 
get the snippet didn't check any further because I think searching for 
negatives only doesn't make to much sense anyway.
 
php4 4.3.4-4 from Debian i386 arch

Andi

Other related posts: