projects
/
irspy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35d4c1b
)
cql_quote() escapes wildcard characters.
author
Mike Taylor
<mike@indexdata.com>
Fri, 11 May 2007 13:54:42 +0000
(13:54 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Fri, 11 May 2007 13:54:42 +0000
(13:54 +0000)
lib/ZOOM/IRSpy/Utils.pm
patch
|
blob
|
history
diff --git
a/lib/ZOOM/IRSpy/Utils.pm
b/lib/ZOOM/IRSpy/Utils.pm
index
e567eff
..
82c7ece
100644
(file)
--- 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;
}