From: Adam Dickmeiss Date: Mon, 8 Jul 2013 09:15:18 +0000 (+0000) Subject: Avoid assign empty string for content regex X-Git-Tag: v1.3.59~11 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;ds=sidebyside;h=e72710fc07c005bf835c3ed9bcdbc1068e118116;p=metaproxy-moved-to-github.git Avoid assign empty string for content regex --- 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); }