mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-28 02:58:18 +08:00
Fix an XSS reflection vulnerability on the workflow import form.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user