mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Use referer form data instead of relying on header
This commit is contained in:
parent
f7c1c28368
commit
1e55f21fa5
10 changed files with 94 additions and 56 deletions
|
|
@ -63,5 +63,6 @@ proc renderPreferences*(prefs: Prefs; path: string): VNode =
|
|||
text "Save preferences"
|
||||
|
||||
form(`method`="post", action="/resetprefs", class="pref-reset"):
|
||||
verbatim "<input name=\"referer\" style=\"display: none\" value=\"$1\"/>" % path
|
||||
button(`type`="submit"):
|
||||
text "Reset preferences"
|
||||
|
|
|
|||
Loading…
Reference in a new issue