From: Mike Taylor Date: Fri, 11 May 2007 13:54:42 +0000 (+0000) Subject: cql_quote() escapes wildcard characters. X-Git-Tag: CPAN-v1.02~54^2~349 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=5f0abc1677e49b6cedf31e82e4bf5ab7f9b04644;p=irspy-moved-to-github.git cql_quote() escapes wildcard characters. --- diff --git a/lib/ZOOM/IRSpy/Utils.pm b/lib/ZOOM/IRSpy/Utils.pm index e567eff..82c7ece 100644 --- a/lib/ZOOM/IRSpy/Utils.pm +++ b/lib/ZOOM/IRSpy/Utils.pm @@ -1,4 +1,4 @@ -# $Id: Utils.pm,v 1.31 2007-05-03 12:41:58 mike Exp $ +# $Id: Utils.pm,v 1.32 2007-05-11 13:54:42 mike Exp $ package ZOOM::IRSpy::Utils; @@ -85,7 +85,7 @@ sub xml_encode { sub cql_quote { my($term) = @_; - $term =~ s/([""\\])/\\$1/g; + $term =~ s/([""\\*?])/\\$1/g; $term = qq["$term"] if $term =~ /[\s""\/]/; return $term; }