Validate int() parsing of form year/month (raises 500 on bad input) #19
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: medium
Category: bug
Location:
app.py:1216,1238,1698,1762,1826,2012,2836Problem
int(request.form.get('year'))raises on missing/empty fields (ValueError/TypeError) -> 500 across several routes.Suggested fix
Add a
parse_int(value, default)helper /int(request.form.get('year') or date.today().year).Filed by automated code review.