]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commit
pakfire.cgi: Implement Post/Redirect/Get pattern
authorLeo-Andres Hofmann <hofmann@leo-andres.de>
Sun, 8 May 2022 12:09:50 +0000 (14:09 +0200)
committerPeter Müller <peter.mueller@ipfire.org>
Sun, 8 May 2022 13:13:21 +0000 (13:13 +0000)
commit85d570843ef7b4b1a428dadf93e5a2a8410348ca
treeae646671fdadad340c62d3a884d6c334b21c0fb6
parent3cdb83939bc69d7e3d4ca911361d84f54301f4b8
pakfire.cgi: Implement Post/Redirect/Get pattern

Refreshing the Pakfire page may cause a command to be
executed multiple times and induce odd errors.

This patch implements a HTTP 303 redirect after form processing,
which causes the browser to discard the POST form data.
Navigating backward or reloading the page now does not trigger
multiple executions anymore.

Fixes: #12781
Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
Acked-by: Peter Müller <peter.muelle@ipfire.org>
html/cgi-bin/pakfire.cgi