Don't go beyond end of string for quoted literals
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 4 Jul 2013 14:43:27 +0000 (16:43 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 4 Jul 2013 14:43:27 +0000 (16:43 +0200)
src/filter_http_rewrite.cpp

index 5e3cfab..97c0755 100644 (file)
@@ -636,6 +636,8 @@ void yf::HttpRewrite::Content::quoted_literal(
             {
                 if (cp[-1] != '\\' && *cp == m)
                     break;
+                if (*cp == '\n')
+                    break;
                 cp++;
             }
             if (!*cp)