chiark / gitweb /
Properly quote package name when constructing regexp in complete_file_from_dsc. ...
[dgit.git] / infra / dgit-repos-server
index 9705a64..cfa0f31 100755 (executable)
@@ -624,7 +624,7 @@ sub dm_txt_check ($$) {
     printdebug " dm_txt_check $keyid $dmtxtfn\n";
     open DT, '<', $dmtxtfn or die "$dmtxtfn $!";
     while (<DT>) {
-       m/^fingerprint:\s+$keyid$/oi
+       m/^fingerprint:\s+\Q$keyid\E$/oi
            ..0 or next;
        if (s/^allow:/ /i..0) {
        } else {