We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fe079a commit 835d907Copy full SHA for 835d907
resources/templates/header.php
@@ -2,7 +2,7 @@
2
3
use UnityWebPortal\lib\UnitySite;
4
5
-if (isset($_POST)) {
+if ($_SERVER["REQUEST_METHOD"] == "POST") {
6
if ((@$_SESSION["is_admin"] ?? false) == true
7
&& (@$_POST["form_name"] ?? null) == "clearView"
8
) {
@@ -14,8 +14,8 @@
14
// They also must not redirect like standard PRG practice because this
15
// header also needs to handle POST data. So this header does the PRG redirect
16
// for all pages.
17
- UnitySite::redirect($_SERVER['PHP_SELF']);
18
unset($_POST); // unset ensures that header must not come before POST handling
+ UnitySite::redirect($_SERVER['PHP_SELF']);
19
}
20
21
if (isset($SSO)) {
0 commit comments