Media request should start with normal characters
This commit is contained in:
parent
4d991cda6d
commit
f53612bef7
1 changed files with 1 additions and 1 deletions
|
@ -424,7 +424,7 @@ class UiRequest(object):
|
|||
if ".." in path or "./" in path:
|
||||
raise SecurityError("Invalid path")
|
||||
|
||||
match = re.match("/media/(?P<address>[A-Za-z0-9\._-]+)(?P<inner_path>/.*|$)", path)
|
||||
match = re.match("/media/(?P<address>[A-Za-z0-9]+[A-Za-z0-9\._-]+)(?P<inner_path>/.*|$)", path)
|
||||
if match:
|
||||
path_parts = match.groupdict()
|
||||
path_parts["request_address"] = path_parts["address"] # Original request address (for Merger sites)
|
||||
|
|
Loading…
Reference in a new issue