From a6fd937e6616d362e7e47548a63fa2f2590b925d Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst <thijs@kinkhorst.com> Date: Wed, 17 Aug 2022 10:04:51 +0000 Subject: [PATCH] Improve debugging message of invalid URLs (cherry picked from commit f85e6bf2b9b099593a6a1ba32590cda9b058e38b) --- src/SimpleSAML/Utils/HTTP.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SimpleSAML/Utils/HTTP.php b/src/SimpleSAML/Utils/HTTP.php index 36be7383d..d69665d31 100644 --- a/src/SimpleSAML/Utils/HTTP.php +++ b/src/SimpleSAML/Utils/HTTP.php @@ -218,7 +218,7 @@ class HTTP } if (!$this->isValidURL($url)) { - throw new Error\Exception('Invalid destination URL.'); + throw new Error\Exception('Invalid destination URL: ' . $url); } if (!empty($parameters)) { @@ -1176,7 +1176,7 @@ class HTTP public function submitPOSTData(string $destination, array $data): void { if (!$this->isValidURL($destination)) { - throw new Error\Exception('Invalid destination URL.'); + throw new Error\Exception('Invalid destination URL: ' . $destination); } $config = Configuration::getInstance(); -- GitLab