Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Conversation

@mslw
Copy link
Collaborator

@mslw mslw commented Sep 23, 2025

The hashed-string is a concatenation of all key-value pairs which are used to calculate the content hash (fingerprint). It is added to the form and used by the server for additional integrity checks. Because one of the fields (Weitere Anmerkungen) is a textarea, it could contain newlines, and hence the hashed-string could also contain newlines. These would get stripped when entered (via JavaScript) into the text field, causing integrity check failures on the server. Apparently, this does not happen for input type=hidden (which also does not need the style parameter to make it hidden).

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/hidden

Fixes #44

The hashed-string is a concatenation of all key-value pairs which are
used to calculate the content hash (fingerprint). It is added to the
form and used by the server for additional integrity checks. Because
one of the fields (Weitere Anmerkungen) is a textarea, it could
contain newlines, and hence the hashed-string could also contain
newlines. These would get stripped when entered (via JavaScript) into
the text field, causing integrity check failures on the
server. Apparently, this does not happen for input type=hidden (which
also does not need the style parameter to make it hidden).

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/hidden

Fixes #44
@mslw mslw merged commit 00447c1 into master Sep 23, 2025
1 check passed
@mslw mslw deleted the hshidden branch December 18, 2025 16:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to submit entry with multi-line additional remarks

1 participant