check if QUERY_STRING is empty or not before building the request URL
This commit is contained in:
		| @@ -63,10 +63,16 @@ class AjaxConsoleProxy(object): | ||||
|  | ||||
|     def __call__(self, env, start_response): | ||||
|         try: | ||||
|             req_url = '%s://%s%s?%s' % (env['wsgi.url_scheme'], | ||||
|                                         env['HTTP_HOST'], | ||||
|                                         env['PATH_INFO'], | ||||
|                                         env['QUERY_STRING']) | ||||
|             if env.has_key('QUERY_STRING'): | ||||
|                 req_url = '%s://%s%s?%s' % (env['wsgi.url_scheme'], | ||||
|                                             env['HTTP_HOST'], | ||||
|                                             env['PATH_INFO'], | ||||
|                                             env['QUERY_STRING']) | ||||
|             else: | ||||
|                 req_url = '%s://%s%s' % (env['wsgi.url_scheme'], | ||||
|                                          env['HTTP_HOST'], | ||||
|                                          env['PATH_INFO']) | ||||
|  | ||||
|             if 'HTTP_REFERER' in env: | ||||
|                 auth_url = env['HTTP_REFERER'] | ||||
|             else: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Christian Berendt
					Christian Berendt