Avoid assign empty string for content regex
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 8 Jul 2013 09:15:18 +0000 (09:15 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 8 Jul 2013 09:15:18 +0000 (09:15 +0000)
src/filter_http_rewrite.cpp

index 69556ca..cb005e9 100644 (file)
@@ -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);
         }