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:
f60273c
)
cql_quote() encloses strings that contain backslash in quotes.
author
Mike Taylor
<mike@indexdata.com>
Thu, 20 Dec 2012 12:40:23 +0000
(12:40 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Thu, 20 Dec 2012 12:40:23 +0000
(12:40 +0000)
lib/ZOOM/IRSpy/Utils.pm
patch
|
blob
|
history
diff --git
a/lib/ZOOM/IRSpy/Utils.pm
b/lib/ZOOM/IRSpy/Utils.pm
index
53e53fc
..
0583662
100644
(file)
--- a/
lib/ZOOM/IRSpy/Utils.pm
+++ b/
lib/ZOOM/IRSpy/Utils.pm
@@
-163,7
+163,7
@@
sub cql_quote {
my($term) = @_;
$term =~ s/([""\\*?])/\\$1/g;
- $term = qq["$term"] if $term =~ /[\s""\/]/;
+ $term = qq["$term"] if $term =~ /[\s""\/\\]/;
return $term;
}
@@
-180,8
+180,7
@@
sub cql_target {
$id = $protocol;
}
- return "rec.id=" . cql_quote($id);
- #return "rec.id_raw=" . cql_quote($id);
+ return "rec.id==" . cql_quote($id);
}