[Home]WikiBugs/SearchingLeftSquareBracket

UseModWiki | WikiBugs | RecentChanges | Preferences

Seaching for "[" single left square bracket causes an error
 Content-type: text/html 
 Software error:
 /[/: unmatched [] in regexp at wiki.pl line 3407.

Add the following to the sub SearchTitleAndBody:
sub SearchTitleAndBody {                                                                                      
  my ($string) = @_;
  my ($name, $freeName, @found);
   $string =~ s/[\[\/]//g; # PATCH
...
This patch returns false matches with "[", afaik. --JuanmaMP


UseModWiki | WikiBugs | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited July 14, 2009 1:17 am by JuanmaMP (diff)
Search: