When you have drawing tags (requires the drawing extension, of course) in a topic, doing a search (or index) can generate bad hyperlinks with missing quotes.
The answer? Change
wikisearch.pm:
$head =~ s/%SEARCH[^%]*%/ /go; # remove inline search
$head =~ s/%DRAWING({.*})?%/ /go; # AAW: Remove drawing tags
$head =~ s/\n/ /go;
--
AlWilliams - 30 Sep 2000
This is already in
TWikiAlphaRelease since 20 Sep 2000, but thanks for letting us know. The rendering of a topic summary has been moved to
wiki.pm, function
makeTopicSummary. It does the following filtering:
$htext =~ s/%INCLUDE[^%]*%/ /go; # remove server side includes
$htext =~ s/%SEARCH[^%]*%/ /go; # remove inline search
$htext =~ s/%DRAWING[^%]*%/ /go; # remove TWikiDraw drawing
$htext =~ s/%ATTACH[A-Z_0-9]*%//go;
$htext =~ s/%PUB[A-Z_0-9]*%//go;
$htext =~ s/%SCRIPT[A-Z_0-9]*%//go;
$htext = handleCommonTags( $htext, $theTopic, $theWeb );
$htext =~ s/<[^>]*>//go; # remove all HTML tags
$htext =~ s/[\[\]\*\|=_]/ /go; # remove Wiki formatting chars
$htext =~ s/\s+[\+\-]*/ /go; # remove newlines and special chars
--
PeterThoeny - 30 Sep 2000