From 796f9c172398b390fb4a0fc3e72b51a58a95a69f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 16 Aug 2009 00:52:15 +0100 Subject: [PATCH] Remove query-specific invocations from lookup (regexp preserving query entries remains) --- yarrg/web/lookup | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/yarrg/web/lookup b/yarrg/web/lookup index 38d87d6..1bd8c79 100755 --- a/yarrg/web/lookup +++ b/yarrg/web/lookup @@ -141,6 +141,8 @@ foreach my $var (@vars) { #---------- initial checks, startup, main entry form ---------- +die if $a{Query} =~ m/[^a-z]/; + dbw_connect($a{Ocean}); @@ -150,17 +152,7 @@ $debug => 0
-%########### query `route' ########## -% if ($a{Query} eq 'route') { - -<& query_route, %baseqf, %queryqf, quri => $quri, a => \%a &> - -% } elsif ($a{Query} eq 'age') { -% ########### query `age' ########## - -<& query_age, %baseqf, %queryqf &> - -% } ########## end of `age' query ########## +<& "query_$a{Query}", %baseqf, %queryqf, quri => $quri, a => \%a &> %#---------- debugging and epilogue ---------- -- 2.30.2