projects
/
metaproxy-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:
fa801e2
)
query_rewrite: no charset for error queries
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 8 Oct 2012 13:35:27 +0000
(15:35 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 8 Oct 2012 13:35:27 +0000
(15:35 +0200)
Avoid performing charset for query conversion errors. The
resulting Type-1 query is invalid in this case.
src/filter_query_rewrite.cpp
patch
|
blob
|
history
diff --git
a/src/filter_query_rewrite.cpp
b/src/filter_query_rewrite.cpp
index
6e77295
..
9bf1eac
100644
(file)
--- a/
src/filter_query_rewrite.cpp
+++ b/
src/filter_query_rewrite.cpp
@@
-125,7
+125,7
@@
void yf::QueryRewrite::Rep::process(mp::Package &package) const
xmlFreeDoc(doc_input);
}
}
- if (charset_to.length() && charset_from.length() &&
+ if (!error_code && charset_to.length() && charset_from.length() &&
(req->query->which == Z_Query_type_1
|| req->query->which == Z_Query_type_101))
{