Todo #12431
closed
GUI pages should use ``POST`` for AJAX calls, not ``GET``
Added by Jim Pingle about 3 years ago.
Updated over 1 year ago.
Plus Target Version:
23.09
Description
The AJAX buttons on the OpenVPN status page submit values using GET
when they should use POST
. The variables used in the backend portion of the call use $_REQUEST
when they should only use $_POST
.
Files
also:
pkg.php
services_captiveportal_vouchers.php
vendorstatus_graph.php
vpn_ipsec_phase1.php
status_graph.php
widgets/gmirror_status.widget.php
widgets/interface_statistics.widget.php
widgets/openvpn.widget.php
- Subject changed from OpenVPN status page should use ``POST`` for AJAX calls, not ``GET`` to GUI pages should use ``POST`` for AJAX calls, not ``GET``
- Category changed from OpenVPN to Web Interface
True. May as well fix them all. Updated subject/category.
- Status changed from New to Pull Request Review
- Assignee set to Viktor Gurov
- Target version changed from 2.6.0 to CE-Next
- Plus Target Version changed from 22.01 to 22.05
Need more comprehensive testing.
- Plus Target Version changed from 22.05 to 22.09
- Plus Target Version changed from 22.09 to 22.11
- Plus Target Version changed from 22.11 to 23.01
- Assignee deleted (
Viktor Gurov)
- Target version changed from CE-Next to 2.7.0
- Plus Target Version changed from 23.01 to 23.05
- Plus Target Version changed from 23.05 to 23.09
- Assignee set to Jim Pingle
- File 429.diff 429.diff added
- Status changed from Pull Request Review to In Progress
Previous MR had conflicts, but I reworked it so it applies against current code for wider testing. See attached.
I tested each of the changes in the diff and found some problems, and also fixed them. Fixed diff attached, passes all my tests at least. Will be committing shortly.
- Status changed from In Progress to Feedback
- % Done changed from 0 to 100
- Status changed from Feedback to Resolved
These all appear to be working well with POST on current builds.
Also available in: Atom
PDF