]> dxcluster.org Git - spider.git/commitdiff
only allow xml if we are doing xml
authorminima <minima>
Wed, 11 Jan 2006 20:25:01 +0000 (20:25 +0000)
committerminima <minima>
Wed, 11 Jan 2006 20:25:01 +0000 (20:25 +0000)
perl/DXProt.pm

index 4a43ef086d1b381800960dd47158ce3fe5482a98..c056db9706e72ff1f6abb708d00855a0524e04fe 100644 (file)
@@ -933,7 +933,7 @@ sub handle_18
                        $self->user->put;
                        $self->sort('S');
                }
-               $self->{handle_xml}++ if $_[1] =~ /\bxml\b/;
+               $self->{handle_xml}++ if $main::do_xml && $_[1] =~ /\bxml\b/;
        } else {
                $self->version(50.0);
                $self->version($_[2] / 100) if $_[2] && $_[2] =~ /^\d+$/;