]> dxcluster.net Git - spider.git/commitdiff
add a modicum of security to the remote key get
authorminima <minima>
Wed, 31 Dec 2003 16:04:12 +0000 (16:04 +0000)
committerminima <minima>
Wed, 31 Dec 2003 16:04:12 +0000 (16:04 +0000)
perl/DXDb.pm

index 2122234bf8fe9d8c8a6025d73707a3e49d698ab9..a088866c5873e675586b4a72c8c93c6565170e70 100644 (file)
@@ -156,6 +156,10 @@ sub getkey
        my $key = uc shift;
        my $value;
 
+       # massage the key
+       $key =~ s/[\@\$\&\%\*]+//g;
+       $key =~ s/^[\.\/]+//g;
+       
        # make sure we are open
        $self->open;
        if ($self->{localcmd}) {