1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-26 05:32:59 +00:00

Tiny formatting tweak

This commit is contained in:
Starbeamrainbowlabs 2020-01-10 17:07:09 +00:00
parent 91ff8abace
commit 7810bc6040
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -49,7 +49,7 @@ register_module([
if(!$settings->disable_peppermint_access_check && if(!$settings->disable_peppermint_access_check &&
php_sapi_name() !== "cli-server") { // The CLI server is single threaded, so it can't support loopback requests php_sapi_name() !== "cli-server") { // The CLI server is single threaded, so it can't support loopback requests
$request_url = full_url(); $request_url = full_url();
$request_url = preg_replace("/\/(index.php)?\?.*$/", "/".$settingsFilename, $request_url); $request_url = preg_replace("/\/(index.php)?\?.*$/", "/$settingsFilename", $request_url);
@file_get_contents($request_url); @file_get_contents($request_url);
// $http_response_header is a global reserved variable. More information: https://devdocs.io/php/reserved.variables.httpresponseheader // $http_response_header is a global reserved variable. More information: https://devdocs.io/php/reserved.variables.httpresponseheader
$response_code = intval(explode(" ", $http_response_header[0])[1]); $response_code = intval(explode(" ", $http_response_header[0])[1]);