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

Commit 8884aa2

Browse files
committed
Change hashed-string input type from text to hidden
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
1 parent f441620 commit 8884aa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entry.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2421,7 +2421,7 @@ <h5 class="mb-3"><label for="finger-print">Fingerabdruck</label></h5>
24212421
</div>
24222422

24232423

2424-
<input type="text" id="hashed-string" name="hashed-string" style="visibility: hidden;" value="">
2424+
<input type="hidden" id="hashed-string" name="hashed-string" value="">
24252425
<input type="text" id="hash-value" name="hash-value" style="visibility: hidden;" value="">
24262426

24272427

0 commit comments

Comments
 (0)