From acfb1e6bcdba18b344f30fa200b9d31cc546cdd1 Mon Sep 17 00:00:00 2001 From: Julius Date: Wed, 24 Apr 2024 17:08:32 +0000 Subject: [PATCH] update wwbnindex path for security --- plugin/WWBNIndex/submitIndex.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/WWBNIndex/submitIndex.php b/plugin/WWBNIndex/submitIndex.php index bec192e210..174c1b45f3 100644 --- a/plugin/WWBNIndex/submitIndex.php +++ b/plugin/WWBNIndex/submitIndex.php @@ -3,7 +3,8 @@ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); -require_once ($_POST['systemRootPath'] . "plugin/WWBNIndex/WWBNIndex.php"); +$systemRootPath = __DIR__ . DIRECTORY_SEPARATOR . '../../'; +require_once ($systemRootPath . "plugin/WWBNIndex/WWBNIndex.php"); $wwbnIndex = new WWBNIndex(); // if (!_mysql_is_open()) {