Fix an XSS reflection vulnerability on the workflow import form.

This commit is contained in:
Nate Coraor
2015-08-12 16:43:52 -04:00
parent 0972c14576
commit cbae8fab67
@@ -1063,7 +1063,7 @@ class WorkflowController( BaseUIController, SharableMixin, UsesStoredWorkflowMix
try:
workflow_data = urllib2.urlopen( url ).read()
except Exception, e:
message = "Failed to open URL: <b>%s</b><br>Exception: %s" % ( url, str( e ) )
message = "Failed to open URL: <b>%s</b><br>Exception: %s" % ( escape( url ), escape( str( e ) ) )
status = 'error'
elif workflow_text:
# This case occurs when the workflow_text was sent via http from the tool shed.