mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
git-update: Catch long source URLs
Bail out early if the source array contains an entry with more than 8000 characters. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
1492444ecb
commit
29a5f94dab
2 changed files with 19 additions and 0 deletions
|
@ -337,6 +337,9 @@ def main():
|
|||
|
||||
for field in extract_arch_fields(pkginfo, 'source'):
|
||||
fname = field['value']
|
||||
if len(fname) > 8000:
|
||||
die_commit('source entry too long: {:s}'.format(fname),
|
||||
str(commit.id))
|
||||
if "://" in fname or "lp:" in fname:
|
||||
continue
|
||||
if fname not in commit.tree:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue