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:
7ddc57f
)
Escape double quotes in query.
author
Mike Taylor
<mike@indexdata.com>
Mon, 25 Sep 2006 16:37:55 +0000
(16:37 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Mon, 25 Sep 2006 16:37:55 +0000
(16:37 +0000)
web/htdocs/raw.html
patch
|
blob
|
history
diff --git
a/web/htdocs/raw.html
b/web/htdocs/raw.html
index
dcb605f
..
063f9b6
100644
(file)
--- a/
web/htdocs/raw.html
+++ b/
web/htdocs/raw.html
@@
-1,4
+1,4
@@
-%# $Id: raw.html,v 1.2 2006-09-20 13:19:53 mike Exp $
+%# $Id: raw.html,v 1.3 2006-09-25 16:37:55 mike Exp $
<%args>
$id
</%args>
@@
-8,7
+8,9
@@
use ZOOM;
<%perl>
my $conn = new ZOOM::Connection("localhost:3313/IR-Explain---1");
$conn->option(elementSetName => "zeerex");
-my $query = qq[rec.id="$id"];
+my $qid = $id;
+$qid =~ s/"/\\"/g;
+my $query = qq[rec.id="$qid"];
my $rs = $conn->search(new ZOOM::Query::CQL($query));
my $n = $rs->size();
if ($n == 0) {