Escape HTML chars in passthrough

This commit is contained in:
Florian Bruhin 2014-06-02 15:04:25 +02:00
parent 8afb20c226
commit 42c9cdf97a

View File

@ -19,6 +19,7 @@
import os
import sys
import cgi
import inspect
sys.path.insert(0, os.getcwd())
@ -214,7 +215,8 @@ def generate_settings():
print(" * +{}+".format(val))
print()
if option.default:
print("Default: +pass:[{}]+".format(option.default))
print("Default: +pass:[{}]+".format(cgi.escape(
option.default)))
else:
print("Default: empty")