boxesserver: unquote_plus all params

This commit is contained in:
Florian Festi 2016-12-11 18:05:19 +01:00
parent 75adf0b15f
commit 9a35ce5b15
1 changed files with 2 additions and 2 deletions

View File

@ -324,7 +324,7 @@ flex cuts, holes and slots for screws and more high level functions.
return self.menu()
args = ["--"+arg for arg in environ['QUERY_STRING'].split("&")]
args = ["--"+unquote_plus(arg) for arg in environ['QUERY_STRING'].split("&")]
if "--render=1" not in args:
start_response(status, headers)
return self.args2html(name, box)
@ -343,7 +343,7 @@ flex cuts, holes and slots for screws and more high level functions.
name, self.boxes["TrayLayout2"], action="TrayLayout2")
if name == "TrayLayout2":
try:
box.parse(unquote_plus(box.layout).split("\n"))
box.parse(box.layout.split("\n"))
except Exception as e:
raise
start_response(status, headers)