Don't crash on overly long filenames for sildes
authorMagnus Hagander <magnus@hagander.net>
Mon, 15 Apr 2024 13:22:24 +0000 (15:22 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 15 Apr 2024 17:31:57 +0000 (19:31 +0200)
commit538d64ea5c035babfd109fe620cd75170239ff82
treef9aa48b8271a51c3cdf641f81fc835896d229dab
parent215b2662c452f2e45cb11911b37b2bde9288f0c9
Don't crash on overly long filenames for sildes

We directly copied the filename from an upload into the name vaule of a
ConferenceSessionSlide, without verifying the length. Uploading a
*really* long filename would cause a crash. Fix this by instead
detecting when it's too long and give a proper error message.
postgresqleu/confreg/backendforms.py
postgresqleu/confreg/forms.py