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
5 changed files with 12 additions and 6 deletions

2
Cargo.lock generated
View file

@ -1204,7 +1204,7 @@ checksum = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35"
[[package]]
name = "jobboerse"
version = "0.1.5"
version = "0.1.6"
dependencies = [
"actix-files",
"actix-multipart",

View file

@ -1,6 +1,6 @@
[package]
name = "jobboerse"
version = "0.1.5"
version = "0.1.6"
edition = "2021"
rust-version = "1.58"
repository = "https://www.fs-infmath.uni-kiel.de/git/FS-InfMath/Jobboerse"

View file

@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.1.6] (2022-05-26)
### Change
- increase some form limits
## [0.1.5] (2022-05-26)
### Change
@ -66,6 +71,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Overview Page of Dependency licenses
[Unreleased]: https://www.fs-infmath.uni-kiel.de/git/FS-InfMath/Jobboerse/src/main
[0.1.6]: https://www.fs-infmath.uni-kiel.de/git/FS-InfMath/Jobboerse/src/version-0.1.6
[0.1.5]: https://www.fs-infmath.uni-kiel.de/git/FS-InfMath/Jobboerse/src/version-0.1.5
[0.1.4]: https://www.fs-infmath.uni-kiel.de/git/FS-InfMath/Jobboerse/src/version-0.1.4
[0.1.3]: https://www.fs-infmath.uni-kiel.de/git/FS-InfMath/Jobboerse/src/version-0.1.3

2
dist/arch/PKGBUILD vendored
View file

@ -9,7 +9,7 @@ _reponame=Jobboerse
_pkgname="${_reponame,,}"
_features=()
pkgname="${_reponame,,}"
pkgver=0.1.5
pkgver=0.1.6
pkgrel=1
pkgdesc="FS-InfMath Job-Offer Page"
arch=('x86_64') # Other architectures may work

View file

@ -338,9 +338,9 @@ impl JobOfferSubmitForm {
const BACKDATE: &str = "backdate";
match field.name() {
TITLE => once_field(field, TITLE, &mut title, 128).await?,
TITLE => once_field(field, TITLE, &mut title, 512).await?,
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
// resulting in 320 octets including the `@` see RFC 2821
@ -395,7 +395,7 @@ impl JobOfferSubmitForm {
}
}
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?,
BACKDATE => {