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

Bug#907425: Possible fix



Control: tag -1 + pending

Hi,

> Not sure of the cause but I note that matlab-gdf is
> "Section: contrib/science".

This MR tries to escape the forward slash in commands/reporting-html-reports.pm:

    https://salsa.debian.org/lintian/lintian/merge_requests/241

The modified routine 'html_quote' is used here:

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

The proposed fix is untested.

Kind regards,
Felix

diff --git a/commands/reporting-html-reports.pm
b/commands/reporting-html-reports.pm
index aed7a6b39..43911fae2 100644
--- a/commands/reporting-html-reports.pm
+++ b/commands/reporting-html-reports.pm
@@ -1128,6 +1128,9 @@ sub html_quote {
     if (index($text, '>') > -1) {
         $text =~ s/>/\>/g;
     }
+    if (index($text, '/') > -1) {
+        $text =~ s/\//\//g;
+    }
     return $text;
 }


Reply to: