web: allow equal ("=") in file paths
glibc has a file named `=__ify` at root or in scripts/ inbetween tags glibc-1.09 and glibc-2.1.91. We have no specific reason to refuse equal signs so add it to the regex. Tested locally on URL: /glibc/glibc-1.09/source/=__ify Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
This commit is contained in:
parent
7ee53451c1
commit
26f20ae51c
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ class SourceResource:
|
||||||
return
|
return
|
||||||
|
|
||||||
# Check if path contains only allowed characters
|
# Check if path contains only allowed characters
|
||||||
if not search('^[A-Za-z0-9_/.,+-]*$', path):
|
if not search('^[A-Za-z0-9_/.,+-=]*$', path):
|
||||||
raise ElixirProjectError('Error', 'Path contains characters that are not allowed',
|
raise ElixirProjectError('Error', 'Path contains characters that are not allowed',
|
||||||
project=project, version=version, query=query)
|
project=project, version=version, query=query)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue