This is an automated email from the git hooks/post-receive script. pabs pushed a commit to branch master in repository devscripts.
commit a4ca60a4f5ba85f3befd6aaf4d0ee0d5af81bb6d Author: Paul Wise <[email protected]> Date: Mon Aug 15 11:24:09 2016 +0800 uscan: Strip whitespace from hrefs before processing (Closes: #833779) --- debian/changelog | 2 ++ scripts/uscan.pl | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index 45df58d..64f2e75 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,8 @@ devscripts (2.16.7) UNRELEASED; urgency=medium + Fix the script for the removal of testing.pl from release.debian.org * dscverify: + Fix bash completion of the --no-conf option + * uscan: + + Strip whitespace from hrefs before processing (Closes: #833779) * Suggest reprotest for reproducible builds testing (Closes: #786755) [ Jakub Wilk ] diff --git a/scripts/uscan.pl b/scripts/uscan.pl index 9403ba6..b406b88 100755 --- a/scripts/uscan.pl +++ b/scripts/uscan.pl @@ -2957,7 +2957,11 @@ sub process_watchline ($$$$$$) while ($content =~ m/<\s*a\s+[^>]*href\s*=\s*([\"\'])(.*?)\1/sgi) { my $href = $2; my $mangled_version; + # Remove whitespace from URLs: + # https://www.w3.org/TR/html5/links.html#links-created-by-a-and-area-elements $href =~ s/\n//g; + $href =~ s/^\s+//; + $href =~ s/\s+$//; foreach my $_pattern (@patterns) { if ($href =~ m&^$_pattern$&) { if ($watch_version == 2) { -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git _______________________________________________ devscripts-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel
