Fix another clusterfuzz identified issue (#15096)
Fix another clusterfuzz identified issue (#15096)

* Fix another clusterfuzz identified issue

Signed-off-by: Andrew Thornton <6a547fdd28db89120bdd70d4af1f9ba672ccd43a@cantab.net>
vdbt/gitea,go-gitea/gitea,cez81/gitea,vdbt/gitea,go-gitea/gitea,cez81/gitea,go-gitea/gitea,cez81/gitea