Escape HTML chars in passthrough
This commit is contained in:
parent
8afb20c226
commit
42c9cdf97a
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import cgi
|
||||||
import inspect
|
import inspect
|
||||||
|
|
||||||
sys.path.insert(0, os.getcwd())
|
sys.path.insert(0, os.getcwd())
|
||||||
@ -214,7 +215,8 @@ def generate_settings():
|
|||||||
print(" * +{}+".format(val))
|
print(" * +{}+".format(val))
|
||||||
print()
|
print()
|
||||||
if option.default:
|
if option.default:
|
||||||
print("Default: +pass:[{}]+".format(option.default))
|
print("Default: +pass:[{}]+".format(cgi.escape(
|
||||||
|
option.default)))
|
||||||
else:
|
else:
|
||||||
print("Default: empty")
|
print("Default: empty")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user