mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Ensure that invalid parameters don't break things.
This commit is contained in:
@@ -341,6 +341,8 @@ def parse_query_string( query_string ):
|
||||
retval = {}
|
||||
arguments = query_string.split( '&' )
|
||||
for argument in arguments:
|
||||
if '=' not in argument:
|
||||
continue
|
||||
key, value = argument.split( '=' )
|
||||
retval[ key ] = value
|
||||
return retval
|
||||
|
||||
Reference in New Issue
Block a user