Merge pull request #894 from mepsteinj/devel

Fix the delete of blacklist/whitelist records under NGINX + PHP-FPM
This commit is contained in:
Mark Drobnak
2019-01-15 21:10:54 -08:00
committed by GitHub
4 changed files with 6 additions and 9 deletions

View File

@@ -5,13 +5,14 @@
* *
* This file is copyright under the latest version of the EUPL. * This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */ * Please see LICENSE file for your rights under this license. */
require_once('auth.php'); require_once('auth.php');
$type = $_POST['list']; $type = $_POST['list'];
// Perform all of the verification for list editing // Perform all of the verification for list editing
// when NOT invoked and authenticated from API // when NOT invoked and authenticated from API
if (!$api) { if (empty($api)) {
list_verify($type); list_verify($type);
} }

View File

@@ -4,9 +4,8 @@
* Network-wide ad blocking via your own hardware. * Network-wide ad blocking via your own hardware.
* *
* This file is copyright under the latest version of the EUPL. * This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */ ?> * Please see LICENSE file for your rights under this license. */
<?php
if(!isset($_GET['list'])) if(!isset($_GET['list']))
die("Missing parameter"); die("Missing parameter");

View File

@@ -4,9 +4,7 @@
* Network-wide ad blocking via your own hardware. * Network-wide ad blocking via your own hardware.
* *
* This file is copyright under the latest version of the EUPL. * This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */ ?> * Please see LICENSE file for your rights under this license. */
<?php
if(basename($_SERVER['SCRIPT_FILENAME']) !== "settings.php") if(basename($_SERVER['SCRIPT_FILENAME']) !== "settings.php")
{ {

View File

@@ -4,16 +4,15 @@
* Network-wide ad blocking via your own hardware. * Network-wide ad blocking via your own hardware.
* *
* This file is copyright under the latest version of the EUPL. * This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */ ?> * Please see LICENSE file for your rights under this license. */
<?php
require_once('auth.php'); require_once('auth.php');
$type = $_POST['list']; $type = $_POST['list'];
// Perform all of the verification for list editing // Perform all of the verification for list editing
// when NOT invoked and authenticated from API // when NOT invoked and authenticated from API
if (!$api) { if (empty($api)) {
list_verify($type); list_verify($type);
} }