We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d3b5172 + 919e78f commit 9d6ccc0Copy full SHA for 9d6ccc0
src/Saml2/Utils.php
@@ -722,8 +722,10 @@ protected static function buildWithBaseURLPath($info)
722
if (!empty($baseURLPath)) {
723
$result = $baseURLPath;
724
if (!empty($info)) {
725
- $path = explode('/', $info);
726
- $extractedInfo = array_pop($path);
+ // Remove base path from the path info.
+ $extractedInfo = str_replace($baseURLPath, '', $info);
727
+ // Remove starting and ending slash.
728
+ $extractedInfo = trim($extractedInfo, '/');
729
if (!empty($extractedInfo)) {
730
$result .= $extractedInfo;
731
}
0 commit comments