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~404 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=5ca5d42ae382a789824ada053f1a6180b15a3a15;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; }