X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FUtils.pm;h=cbdb5c8a4ab4edc229b4fc91148b20433a59c44e;hb=5a79d757b02f1b232f651f0ef8296395723789e3;hp=ad98b155768f642387f8cfd8f23b5b12bec94e56;hpb=39556c02c62aade0988849bd82f5f16d16919c1f;p=irspy-moved-to-github.git diff --git a/lib/ZOOM/IRSpy/Utils.pm b/lib/ZOOM/IRSpy/Utils.pm index ad98b15..cbdb5c8 100644 --- a/lib/ZOOM/IRSpy/Utils.pm +++ b/lib/ZOOM/IRSpy/Utils.pm @@ -1,4 +1,4 @@ -# $Id: Utils.pm,v 1.21 2006-12-18 15:34:54 mike Exp $ +# $Id: Utils.pm,v 1.24 2007-03-01 13:59:45 mike Exp $ package ZOOM::IRSpy::Utils; @@ -67,7 +67,7 @@ sub cql_quote { my($term) = @_; $term =~ s/([""\\])/\\$1/g; - $term = qq["$term"] if $term =~ /\s/; + $term = qq["$term"] if $term =~ /[\s""\/]/; return $term; } @@ -76,9 +76,7 @@ sub cql_quote { sub cql_target { my($host, $port, $db) = @_; - return ("host=" . cql_quote($host) . " and " . - "port=" . cql_quote($port) . " and " . - "path=" . cql_quote($db)); + return "rec.id=" . cql_quote("$host:$port/$db"); }