mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 16:30:31 +02:00
Don't allow dollar_var to swalllow characters like "{"
This commit is contained in:
@@ -23,7 +23,7 @@ class RawNginxParser(object):
|
||||
right_bracket = space.leaveWhitespace() + Literal("}").suppress()
|
||||
semicolon = Literal(";").suppress()
|
||||
key = Word(alphanums + "_/+-.")
|
||||
dollar_var = Combine(Literal('$') + nonspace)
|
||||
dollar_var = Combine(Literal('$') + Regex(r"[^\{\};,\s]+"))
|
||||
condition = Regex(r"\(.+\)")
|
||||
# Matches anything that is not a special character AND any chars in single
|
||||
# or double quotes
|
||||
|
||||
Reference in New Issue
Block a user