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:
Théo Lebrun 2026-04-29 14:07:00 +02:00
parent 7ee53451c1
commit 26f20ae51c

View file

@ -230,7 +230,7 @@ class SourceResource:
return
# 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',
project=project, version=version, query=query)