From 00ee71c307a1330c3365e39cec662992a05f3857 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 8 Oct 2012 15:35:27 +0200 Subject: [PATCH] query_rewrite: no charset for error queries Avoid performing charset for query conversion errors. The resulting Type-1 query is invalid in this case. --- src/filter_query_rewrite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filter_query_rewrite.cpp b/src/filter_query_rewrite.cpp index 6e77295..9bf1eac 100644 --- 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)) { -- 1.7.10.4