1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 04:23:01 +00:00

core: Support setting page through either GET or POST

Fixes #217.
This commit is contained in:
Starbeamrainbowlabs 2020-11-20 21:25:47 +00:00
parent e76eaf5963
commit b2a783e903
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 2 additions and 1 deletions

View file

@ -12,6 +12,7 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t
## Changed
- Updated the [configuration guide](https://starbeamrainbowlabs.com/labs/peppermint/peppermint-config-info.php) to include count of how many settings we have
- Also send a `x-robots-tag: noindex, nofollow` HTTP header for the login page (Semrush Bot, you better obey this one)
- Support `page` as either a GET parameter or a POST parameter (GET takes precedence over POST)
## Fixed

View file

@ -5,7 +5,7 @@
/// Finish setting up the environment object ///
$env->page = $_GET["page"];
$env->page = $_GET["page"] ?? $_POST["page"];
if(isset($_GET["revision"]) and is_numeric($_GET["revision"]))
{
// We have a revision number!