projects
/
irspy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cql_quote() encloses strings that contain backslash in quotes.
[irspy-moved-to-github.git]
/
lib
/
ZOOM
/
IRSpy
/
Utils.pm
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;
my($term) = @_;
$term =~ s/([""\\*?])/\\$1/g;
- $term = qq["$term"] if $term =~ /[\s""\/]/;
+ $term = qq["$term"] if $term =~ /[\s""\/\\]/;
return $term;
}
return $term;
}
@@
-180,8
+180,7
@@
sub cql_target {
$id = $protocol;
}
$id = $protocol;
}
- return "rec.id=" . cql_quote($id);
- #return "rec.id_raw=" . cql_quote($id);
+ return "rec.id==" . cql_quote($id);
}
}