Skip to content

Commit d3285e3

Browse files
committed
Fix #467 bug on getSelfRoutedURLNoQuery method
1 parent 888e333 commit d3285e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Saml2/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ public static function getSelfRoutedURLNoQuery()
654654

655655
$pos = strpos($selfRoutedURLNoQuery, "?");
656656
if ($pos !== false) {
657-
$selfRoutedURLNoQuery = substr($selfRoutedURLNoQuery, 0, $pos-1);
657+
$selfRoutedURLNoQuery = substr($selfRoutedURLNoQuery, 0, $pos);
658658
}
659659

660660
return $selfRoutedURLNoQuery;

0 commit comments

Comments
 (0)