increase some form limits and cut a new release #24

Merged
ben merged 2 commits from ben/Jobboerse:main into main 2022-05-26 21:44:08 +02:00
Showing only changes of commit ea43b48f2f - Show all commits

increase size limit for some form fields as I already hit the current limit

Bennet Bleßmann 2022-05-26 21:41:25 +02:00 committed by Bennet Bleßmann
Signed by: ben
GPG key ID: 3BE1A1A3CBC3CF99

View file

@ -338,9 +338,9 @@ impl JobOfferSubmitForm {
const BACKDATE: &str = "backdate"; const BACKDATE: &str = "backdate";
match field.name() { match field.name() {
TITLE => once_field(field, TITLE, &mut title, 128).await?, TITLE => once_field(field, TITLE, &mut title, 512).await?,
OFFERING_PARTY => { OFFERING_PARTY => {
once_field(field, OFFERING_PARTY, &mut offering_party, 128).await? once_field(field, OFFERING_PARTY, &mut offering_party, 512).await?
} }
// Technically the local part can be 64 octets and the domain part can be 254 octets // Technically the local part can be 64 octets and the domain part can be 254 octets
// resulting in 320 octets including the `@` see RFC 2821 // resulting in 320 octets including the `@` see RFC 2821
@ -395,7 +395,7 @@ impl JobOfferSubmitForm {
} }
} }
LINK_TITLES => { LINK_TITLES => {
multi_field(field, LINK_TITLES, &mut link_titles, 128, Some(20)).await? multi_field(field, LINK_TITLES, &mut link_titles, 512, Some(20)).await?
} }
LINK_URLS => multi_field(field, LINK_URLS, &mut link_urls, 2048, Some(20)).await?, LINK_URLS => multi_field(field, LINK_URLS, &mut link_urls, 2048, Some(20)).await?,
BACKDATE => { BACKDATE => {