Github user masaori335 commented on a diff in the pull request:
https://github.com/apache/trafficserver/pull/951#discussion_r77287760
--- Diff: plugins/header_rewrite/parser.cc ---
@@ -50,6 +52,12 @@ Parser::Parser(const std::string &line) : _cond(false),
_empty(false)
_tokens.push_back(std::string(1, line[i]));
}
continue; /* always eat whitespace */
+ } else if (line[i] == '\\') {
+ // erase a backslash in quoted-string
+ if (inquote && extracting_token) {
--- End diff --
My commit message might be not suitable. What I want to fix is we can't use
**double quote** inside of quoted string.
We can make this more general, but it makes header_rewrite rules and parser
code more complicated.
Do you have any specific use cases to escape something outside of quoted
string?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---