fix possible dos in dx command
authorminima <minima>
Fri, 8 Nov 2002 16:46:12 +0000 (16:46 +0000)
committerminima <minima>
Fri, 8 Nov 2002 16:46:12 +0000 (16:46 +0000)
Changes
cmd/dx.pl

diff --git a/Changes b/Changes
index 48118aceb2279a4260cc257911326e11b5488c5d..570c02070650671ddc2ec2b1fbe396be52fc3d8c 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,6 @@
 08Nov02=======================================================================
 1. made some small mods to grepdbg and spot2csv.pl
+2. fix a possible DOS in dx command
 07Nov02=======================================================================
 1. allow three digit longitudes
 2. make a small change to see if messages now stay in place.
index eefbb8603380ad7e7c8978e64290598d6d290f02..20046781a68f27f6f45f293c3bdf15b67a258e61 100644 (file)
--- a/cmd/dx.pl
+++ b/cmd/dx.pl
@@ -35,7 +35,7 @@ return (1, $self->msg('dx2')) unless @f >= 2;
 
 if ($f[0] =~ /^by$/i) {
     $spotter = uc $f[1];
-    $line =~ s/^\s*$f[0]\s+$f[1]\s+//;
+    $line =~ s/^\s*\Q$f[0]\s+\Q$f[1]\s+//;
        $line = $f[2];
        @f = split /\s+/, $line;
        return (1, $self->msg('dx2')) unless @f >= 2;