Commit 348a9237 authored by Felix Lechner's avatar Felix Lechner Committed by Chris Lamb

Attempt to fix irregular HTML display of package matlab-gdf in HTML output. (Re. #907425)

As lamby pointed out, the package matlab-gdf that gave rise to the bug
belongs to the section 'contrib/science'. The section is somewhat
unusual because it uses a slash.

No slash was present in the HTML page source (as one might expect for
an unescaped character) and the output looked a little different from
what was reported in the bug. (The version and the section were both
absent.)  Nonetheless, this patch seemed like a reasonable attempt to
resolve the bug. It is supposed to escape forward slashes to the HTML
sequence '/' but it is untested.

It looks like the archive component for individual packages runs
through the routine html_quote, which is changed here, before being
passed to Text::Template:

https://salsa.debian.org/lintian/lintian/blob/master/commands/reporting-html-reports.pm#L1062

This commit may or may not close the bug. It needs to be tested.

Gbp-Dch: ignore
parent 26240c00
......@@ -1128,6 +1128,9 @@ sub html_quote {
if (index($text, '>') > -1) {
$text =~ s/>/\>/g;
}
if (index($text, '/') > -1) {
$text =~ s/\//\//g;
}
return $text;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment