Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkernelpanek <kernelpanek+github@gmail.com>2017-03-15 10:26:16 +0300
committerkernelpanek <kernelpanek+github@gmail.com>2017-03-15 10:26:16 +0300
commite715b49dd2b826460f7871776e85f46bc2d8f1d2 (patch)
tree636aa87bbd483b12e27abaf2a3238a546d842fcc /certbot-nginx
parent5758b1687d5cb79beef8b51d90c655657985f6a4 (diff)
Don't unquote the results of the parse
Diffstat (limited to 'certbot-nginx')
-rw-r--r--certbot-nginx/certbot_nginx/nginxparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/certbot-nginx/certbot_nginx/nginxparser.py b/certbot-nginx/certbot_nginx/nginxparser.py
index 908a6d6cf..67ac7c3a1 100644
--- a/certbot-nginx/certbot_nginx/nginxparser.py
+++ b/certbot-nginx/certbot_nginx/nginxparser.py
@@ -29,8 +29,8 @@ class RawNginxParser(object):
# any chars in single or double quotes
# All of these COULD be upgraded to something like
# https://stackoverflow.com/a/16130746
- dquoted = QuotedString('"', multiline=True)
- squoted = QuotedString("'", multiline=True)
+ dquoted = QuotedString('"', multiline=True, unquoteResults=False)
+ squoted = QuotedString("'", multiline=True, unquoteResults=False)
nonspecial = Regex(r"[^\{\};,]")
varsub = Regex(r"(\$\{\w+\})")
# nonspecial nibbles one character at a time, but the other objects take