From e72710fc07c005bf835c3ed9bcdbc1068e118116 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 8 Jul 2013 09:15:18 +0000 Subject: [PATCH] Avoid assign empty string for content regex --- src/filter_http_rewrite.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filter_http_rewrite.cpp b/src/filter_http_rewrite.cpp index 69556ca..cb005e9 100644 --- a/src/filter_http_rewrite.cpp +++ b/src/filter_http_rewrite.cpp @@ -810,8 +810,8 @@ void yf::HttpRewrite::configure_phase(const xmlNode *ptr, Phase &phase) Content c; c.type = values[0]; - // if (!values[1].empty()) - c.content_re = values[1]; + if (!values[1].empty()) + c.content_re.assign(values[1], boost::regex::icase); c.configure(ptr->children, rules); phase.content_list.push_back(c); } -- 1.7.10.4