send-email: use \E***\Q instead of \*\*\*
[gitweb.git] / git-send-email.perl
index ce9b5ebd4040e17156ed66baeb34ed6ecdd082a9..1218bbe729ad73ebd51bf98b7e46a14c2dcccde8 100755 (executable)
@@ -705,7 +705,7 @@ sub file_declares_8bit_cte {
 
 if (!$force) {
        for my $f (@files) {
-               if (get_patch_subject($f) =~ /\*\*\* SUBJECT HERE \*\*\*/) {
+               if (get_patch_subject($f) =~ /\Q*** SUBJECT HERE ***\E/) {
                        die "Refusing to send because the patch\n\t$f\n"
                                . "has the template subject '*** SUBJECT HERE ***'. "
                                . "Pass --force if you really want to send.\n";