diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-08-16 15:15:44 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-08-16 15:15:44 +0100 |
commit | 5cde19017f6b64ab1e440633d59e36a231b57a3f (patch) | |
tree | 0e6fbd77fb7b670058d65d7bb9e2b65471e48cf8 /dgit | |
parent | 9acb31a971d4f653836bbcf07410f51d3f80dbdd (diff) |
Properly quote package name when constructing regexp in complete_file_from_dsc. Closes:#795736. Also, grep the code for likely similar problems elsewhere and improve a (harmless) instance in dgit-repos-server.
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1481,7 +1481,7 @@ sub complete_file_from_dsc ($$) { my $furl = $dscurl; $furl =~ s{/[^/]+$}{}; $furl .= "/$f"; - die "$f ?" unless $f =~ m/^${package}_/; + die "$f ?" unless $f =~ m/^\Q${package}\E_/; die "$f ?" if $f =~ m#/#; runcmd_ordryrun_local @curl,qw(-o),$tf,'--',"$furl"; next if !act_local(); |