cql_quote() escapes wildcard characters.
authorMike Taylor <mike@indexdata.com>
Fri, 11 May 2007 13:54:42 +0000 (13:54 +0000)
committerMike Taylor <mike@indexdata.com>
Fri, 11 May 2007 13:54:42 +0000 (13:54 +0000)
lib/ZOOM/IRSpy/Utils.pm

index e567eff..82c7ece 100644 (file)
@@ -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;
 }