Fix handling of malformed URLs
- Otherwise, we end up with a wrong path variable that causes an internal server error Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
This commit is contained in:
parent
c4f3a1de5b
commit
e9d970ced1
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ if m:
|
|||
else:
|
||||
mode = 'source'
|
||||
if not search('^[A-Za-z0-9_/.,+-]*$', path):
|
||||
path = 'INVALID'
|
||||
status = 400
|
||||
url = 'source'+path
|
||||
|
||||
elif cmd == 'ident':
|
||||
|
|
|
|||
Loading…
Reference in a new issue