Skip to content

Commit

Permalink
Security update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Mar 28, 2024
1 parent f41dc1b commit fcb1f79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions install/checkConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,10 @@
/*
FOR WWBNIndex Plugin
*/
if (file_exists($_POST['systemRootPath'] . "plugin/WWBNIndex/submitIndex.php")) {
include ($_POST['systemRootPath'] . "plugin/WWBNIndex/submitIndex.php");
$systemRootPath = __DIR__ . DIRECTORY_SEPARATOR . '../';
$file = "{$systemRootPath}plugin/WWBNIndex/submitIndex.php";
if (file_exists($file)) {
include $file;
}
error_log("Installation: ".__LINE__);
$obj->success = true;
Expand Down
4 changes: 2 additions & 2 deletions plugin/WWBNIndex/submitIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,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()) {
Expand Down

0 comments on commit fcb1f79

Please # to comment.