This is an automated email from the git hooks/post-receive script. broucaries-guest pushed a commit to branch master in repository lintian.
commit ec3a0fea758dc7bee33f1b4e9c3bef2ac7b66518 Author: Bastien ROUCARIÈS <roucaries.bastien+deb...@gmail.com> Date: Mon Sep 28 21:25:34 2015 +0200 Avoid a false postive for link alternate with rdf document <link rel="alternate" type="application/rdf+xml" href="http://www.gnu.org/licenses/gpl-3.0.rdf" /> --- checks/files.pm | 16 +++++++++++++++- debian/changelog | 2 ++ .../old-false-positive/privacy-breach-generic/rdf.html | 9 +++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/checks/files.pm b/checks/files.pm index 4643f26..bde6b7f 100644 --- a/checks/files.pm +++ b/checks/files.pm @@ -1933,7 +1933,8 @@ sub _check_tag_url_privacy_breach { } # reparse fulltag for rel if ($tagattr eq 'link') { - $fulltag =~ m,<link + my $rel = $fulltag; + $rel =~ m,<link (?:\s[^>]+)? \s+ rel="([^"\r\n]*)" [^>]* @@ -1949,6 +1950,19 @@ sub _check_tag_url_privacy_breach { } elsif ($relcontent eq 'generator-home') { # generator-home is used by texinfo return; + # reparse for alternate (css alternate is loaded) + } elsif ($relcontent eq 'alternate') { + my $type = $fulltag; + $type =~ m,<link + (?:\s[^>]+)? \s+ + type="([^"\r\n]*)" + [^>]* + >,xismog; + my $typecontent = $1; + if($typecontent eq 'application/rdf+xml') { + # see #79991 + return; + } } } } diff --git a/debian/changelog b/debian/changelog index b036fdb..25e717b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,8 @@ lintian (2.5.38) UNRELEASED; urgency=medium to Chris Lamb and Jakub Wilk for pointing out issues with the original description. (Closes: #797466) + [BR] Detect pagead2. + + [BR] Fix false positive privacy-breach-* for alternate link tag + with type application/rdf+xml. (Closes: #799914). * checks/obsolete-sites.pm: + [AB] Stop at <>, $, or " when emitting URLs as tag parameter. * checks/menu-format.{desc,pm}: diff --git a/t/tests/files-privacybreach/debian/src/old-false-positive/privacy-breach-generic/rdf.html b/t/tests/files-privacybreach/debian/src/old-false-positive/privacy-breach-generic/rdf.html new file mode 100644 index 0000000..0473199 --- /dev/null +++ b/t/tests/files-privacybreach/debian/src/old-false-positive/privacy-breach-generic/rdf.html @@ -0,0 +1,9 @@ +<html> +<header> +</header> +<link rel="alternate" type="application/rdf+xml" + href="http://www.gnu.org/licenses/gpl-3.0.rdf" /> +<body> +Test +</body> +</html> \ No newline at end of file -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git