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

[lintian] 01/02: c/obsolete-sites.pm: Stop at <>, $ or " when emitting URLs



This is an automated email from the git hooks/post-receive script.

abe pushed a commit to branch master
in repository lintian.

commit 1ba53e121a2db37ac322f3bddab8b1548eb744cc
Author: Axel Beckert <abe@deuxchevaux.org>
Date:   Sat Sep 12 11:48:59 2015 +0200

    c/obsolete-sites.pm: Stop at <>, $ or " when emitting URLs
---
 checks/obsolete-sites.pm | 3 ++-
 debian/changelog         | 3 +++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/checks/obsolete-sites.pm b/checks/obsolete-sites.pm
index e159854..92f1bd2 100644
--- a/checks/obsolete-sites.pm
+++ b/checks/obsolete-sites.pm
@@ -63,7 +63,8 @@ sub search_for_obsolete_sites {
 
         foreach my $site ($OBSOLETE_SITES->all()) {
             #warn "$file vs $site";
-            if ($dcontents =~ m((\w+://(?:[\w.]*\.)?\Q$site\E[/:]\S*))i) {
+            if ($dcontents
+                =~ m((\w+://(?:[\w.]*\.)?\Q$site\E[/:][^\s\"<>\$]*))i) {
                 tag 'obsolete-url-in-packaging', $file, $1;
             }
         }
diff --git a/debian/changelog b/debian/changelog
index 7bdd1db..1c4ef54 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,9 @@ lintian (2.5.38) UNRELEASED; urgency=medium
 
   XXX: generate tag summary
 
+  * checks/obsolete-sites.pm:
+    + [AB] Stop at <>, $, or " when emitting URLs as tag parameter.
+
   * data/obsolete-sites/obsolete-sites:
     + [AB] Add patch by Hideki Yamane to add sourceforge.jp.
     + [AB] Sort file alphabetically.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: