From: Frank Lichtenheld Date: Sun, 7 Oct 2007 20:18:36 +0000 (+0200) Subject: Don't try to output html in error/debug messages X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=commitdiff_plain;h=9dab5dc6d6a13ef40fa93c626f06b20d2c979189 Don't try to output html in error/debug messages --- diff --git a/lib/Packages/CGI.pm b/lib/Packages/CGI.pm index c29e56c..beb4e25 100644 --- a/lib/Packages/CGI.pm +++ b/lib/Packages/CGI.pm @@ -88,7 +88,7 @@ sub parse_params { foreach my $param ( keys %params ) { - debug( "Param $param", 2 ) if DEBUG; + debug( "Param $param", 2 ) if DEBUG; my $p_value_orig = $cgi->param($param); diff --git a/lib/Packages/DoShow.pm b/lib/Packages/DoShow.pm index 2e33692..51c97e7 100644 --- a/lib/Packages/DoShow.pm +++ b/lib/Packages/DoShow.pm @@ -68,8 +68,8 @@ sub do_show { } unless (@results || @non_results ) { - fatal_error( _g( "No such package." )."
". - sprintf( _g( 'Search for the package' ), make_search_url('','keywords='.uri_escape($pkg)) ) ); + fatal_error( _g( "No such package.") ); + #sprintf( _g( 'Search for the package' ), make_search_url('','keywords='.uri_escape($pkg)) ) ); } else { my %all_suites; foreach (@results, @non_results) {