From 32afc940748b98bc8f49386a0b0f0ef22762f1f3 Mon Sep 17 00:00:00 2001 From: Sixto Martin Date: Fri, 19 Feb 2021 02:09:31 +0100 Subject: [PATCH] Fix #467 bug on getSelfRoutedURLNoQuery method --- src/Saml2/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Saml2/Utils.php b/src/Saml2/Utils.php index 47debedc..582c117b 100644 --- a/src/Saml2/Utils.php +++ b/src/Saml2/Utils.php @@ -654,7 +654,7 @@ public static function getSelfRoutedURLNoQuery() $pos = strpos($selfRoutedURLNoQuery, "?"); if ($pos !== false) { - $selfRoutedURLNoQuery = substr($selfRoutedURLNoQuery, 0, $pos-1); + $selfRoutedURLNoQuery = substr($selfRoutedURLNoQuery, 0, $pos); } return $selfRoutedURLNoQuery;