summaryrefslogtreecommitdiffstats
path: root/src/etc/inc
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-02-14 16:31:05 -0500
committerSteve Beaver <sbeaver@netgate.com>2017-02-14 16:31:05 -0500
commit8d58ebae67880814c4ae602cd5313892927b1f3c (patch)
tree2b6f12cd28e2ad88a9f859f2b21675b8f819a681 /src/etc/inc
parent33ebc875126ef9a0de3670e47d21b13a883e8ab0 (diff)
downloadpfsense-8d58ebae67880814c4ae602cd5313892927b1f3c.zip
pfsense-8d58ebae67880814c4ae602cd5313892927b1f3c.tar.gz
GET/POST conversion
Diffstat (limited to 'src/etc/inc')
-rw-r--r--src/etc/inc/auth.inc4
-rw-r--r--src/etc/inc/filter_log.inc2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/etc/inc/auth.inc b/src/etc/inc/auth.inc
index bca6b10..563987b 100644
--- a/src/etc/inc/auth.inc
+++ b/src/etc/inc/auth.inc
@@ -1863,14 +1863,14 @@ function session_auth() {
* to submit a HTML form. It basically disables the observation
* of the submit event and hence does not trigger Ajax.
*/
- if ($_GET['disable_ajax']) {
+ if ($_REQUEST['disable_ajax']) {
$_SESSION['NO_AJAX'] = "True";
}
/*
* Same to re-enable Ajax.
*/
- if ($_GET['enable_ajax']) {
+ if ($_REQUEST['enable_ajax']) {
unset($_SESSION['NO_AJAX']);
}
diff --git a/src/etc/inc/filter_log.inc b/src/etc/inc/filter_log.inc
index 93b049c..7152bd9 100644
--- a/src/etc/inc/filter_log.inc
+++ b/src/etc/inc/filter_log.inc
@@ -559,7 +559,7 @@ function find_action_image($action) {
/* AJAX specific handlers */
function handle_ajax() {
global $config;
- if (($_GET['lastsawtime'] or $_POST['lastsawtime']) and ($_GET['logfile'] or $_POST['logfile'])) {
+ if ($_REQUEST['lastsawtime'] && $_REQUEST['logfile']) {
$lastsawtime = getGETPOSTsettingvalue('lastsawtime', null);
$logfile = getGETPOSTsettingvalue('logfile', null);
OpenPOWER on IntegriCloud