Skip to content
Snippets Groups Projects
Commit 4aa67748 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Merge branch 'h5groove-fix' into 'develop'

Fixed a url encoding issue in h5groove integration.

See merge request !1906
parents 19b7da45 b2ae7cfb
No related branches found
No related tags found
1 merge request!1906Fixed a url encoding issue in h5groove integration.
Pipeline #208156 passed
...@@ -123,8 +123,11 @@ async def add_upload_folder_path(request: Request, call_next): ...@@ -123,8 +123,11 @@ async def add_upload_folder_path(request: Request, call_next):
query_string = re.sub( query_string = re.sub(
r'file=.+?(?:&|\Z)', f'file={upload_path}{file}&', query_string r'file=.+?(?:&|\Z)', f'file={upload_path}{file}&', query_string
) )
query_string = re.sub(r'path=.+?(?:&|\Z)', f'path={path}&', query_string) query_string = re.sub(
r'path=.+?(?:&|\Z)', f'path={urllib.parse.quote(path)}&', query_string
)
scope['query_string'] = query_string.encode('utf-8') scope['query_string'] = query_string.encode('utf-8')
response = await call_next(Request(scope)) response = await call_next(Request(scope))
return response return response
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment