[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#133280: wrong links at wmweather+ package page



tags 133280 + patch
thanks

On Wed, Jan 29, 2003 at 02:21:30 +0100, Josip Rodin wrote:

> On Wed, Jan 29, 2003 at 01:05:25AM +0100, Martin Godisch wrote:
> > I reproduced bug #133280 with wmweather+ and Opera 6.11. If you can
> > point me to the package page generating script, I'd like to help to
> > fix this issue.
> 
> Please see
> 
> http://cvs.debian.org/packages/htmlscripts/?cvsroot=webwml
> http://cvs.debian.org/packages/cgi-bin/?cvsroot=webwml

The patch for search_contents.pl should fix the 'list of files' link,
the one for pages.pl the 'other versions' link. Please test both.

Kind regards,

Martin
diff -ur webml.orig/pages.pl webml/pages.pl
--- webml.orig/pages.pl	Wed Jan 29 08:17:29 2003
+++ webml/pages.pl	Wed Jan 29 08:39:59 2003
@@ -281,7 +281,7 @@
 		my $sourcepackage = $package{$pack}{source} ne "" ? $package{$pack}{source} : $pack;
 		$package_page .= "<small>See the <a href=\"$QA_URL$sourcepackage\">developer information for $pack</a>.</small>\n";
 
-		$package_page .= "<p><small>Search for <a href=\"$SEARCH_URL$pack\">other versions of $pack</a></small>\n";
+		$package_page .= "<p><small>Search for <a href=\"$SEARCH_URL$encodedpack\">other versions of $pack</a></small>\n";
 
 		$package_page .= trailer('../../..');
 
diff -ur webml.orig/search_contents.pl webml/search_contents.pl
--- webml.orig/search_contents.pl	Wed Jan 29 08:24:11 2003
+++ webml/search_contents.pl	Wed Jan 29 09:09:05 2003
@@ -105,6 +105,7 @@
   $grep .= '"[^ ]"';
 } elsif ($searchmode eq "filelist") {
   $searchkeyword = lc $searchkeyword; # just in case
+  $searchkeyword =~ s/\+/\\\\+/g;
   $grep = "zegrep -h /$searchkeyword".'"(,[^ ]+)?$"';
 }
 

Reply to: