1 parent
1a2739c640
commit
df6e94f7a3
1 file changed
+1
-1
@@ -86,7 +86,7 @@ def printerToolCommand():
|
||||
##~~ tool selection
|
||||
if command == "select":
|
||||
tool = data["tool"]
|
||||
if re.match(validation_regex, tool) is None:
|
||||
if not isinstance(tool, basestring) or re.match(validation_regex, tool) is None:
|
||||
return make_response("Invalid tool: %s" % tool, 400)
|
||||
if not tool.startswith("tool"):
|
||||
return make_response("Invalid tool for selection: %s" % tool, 400)
|
||||
|
||||
Reference in new issue
Block a user