From dd3045fcc2624bb00348a68ea7f80a56a6502a96 Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 26 Aug 2024 17:29:28 +0200 Subject: [PATCH] Intercept eqsl image errors (which are not rate limits) --- application/controllers/Eqsl.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/application/controllers/Eqsl.php b/application/controllers/Eqsl.php index b6b8d2d60..9c45e2388 100644 --- a/application/controllers/Eqsl.php +++ b/application/controllers/Eqsl.php @@ -384,7 +384,12 @@ class eqsl extends CI_Controller { $images = $dom->getElementsByTagName('img'); if (!isset($images) || count($images) == 0) { - $error = "Rate Limited"; + $h3 = $dom->getElementsByTagName('h3'); + if (isset($h3)) { + $error = $h3->item(0)->nodeValue; + } else { + $error = "Rate Limited"; + } return $error; } @@ -402,7 +407,6 @@ class eqsl extends CI_Controller { } } } - return $error; } public function tools() {