Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX Use correct host on response destination fallback check #156

Merged

Conversation

dhensby
Copy link
Contributor

@dhensby dhensby commented Sep 6, 2016

Fixes #151

I'm not sure how I can test this in the current test suite - any advice?

@@ -171,7 +171,7 @@ public function isValid($requestId = null)
$destination = trim($this->document->documentElement->getAttribute('Destination'));
if (!empty($destination)) {
if (strpos($destination, $currentURL) !== 0) {
$currentURLrouted = OneLogin_Saml2_Utils::getSelfRoutedURLNoQuery();
$currentURLrouted = OneLogin_Saml2_Utils::getSelfURLNoQuery();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you rename the $currentURLrouted by $currentURLNoRouted ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@dhensby dhensby force-pushed the pulls/proper-destination-check branch from 8b6a1a9 to e1e32a7 Compare September 6, 2016 17:14
@pitbulk
Copy link
Contributor

pitbulk commented Sep 7, 2016

I plan to add some improvements on the toolkit in the next weeks, so I will take care of the test of that part.

@pitbulk pitbulk merged commit 7a87f05 into SAML-Toolkits:master Sep 7, 2016
@dhensby dhensby deleted the pulls/proper-destination-check branch September 7, 2016 12:47
@dhensby
Copy link
Contributor Author

dhensby commented Sep 7, 2016

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants