do not follow url location/redirect when using LE selfcheck
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -216,7 +216,7 @@ class lescript
|
|||||||
// simple self check
|
// simple self check
|
||||||
if (Settings::Get('system.disable_le_selfcheck') == '0')
|
if (Settings::Get('system.disable_le_selfcheck') == '0')
|
||||||
{
|
{
|
||||||
$selfcheckpayload = HttpClient::urlGet($uri);
|
$selfcheckpayload = HttpClient::urlGet($uri, false);
|
||||||
if ($payload !== trim($selfcheckpayload)) {
|
if ($payload !== trim($selfcheckpayload)) {
|
||||||
$errmsg = json_encode(error_get_last());
|
$errmsg = json_encode(error_get_last());
|
||||||
if ($errmsg != "null") {
|
if ($errmsg != "null") {
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ class lescript_v2
|
|||||||
|
|
||||||
// simple self check
|
// simple self check
|
||||||
if (Settings::Get('system.disable_le_selfcheck') == '0') {
|
if (Settings::Get('system.disable_le_selfcheck') == '0') {
|
||||||
$selfcheckpayload = HttpClient::urlGet($uri);
|
$selfcheckpayload = HttpClient::urlGet($uri, false);
|
||||||
if ($payload !== trim($selfcheckpayload)) {
|
if ($payload !== trim($selfcheckpayload)) {
|
||||||
$errmsg = json_encode(error_get_last());
|
$errmsg = json_encode(error_get_last());
|
||||||
if ($errmsg != "null") {
|
if ($errmsg != "null") {
|
||||||
|
|||||||
Reference in New Issue
Block a user