We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 606b8ea + d92fbf6 commit 034720eCopy full SHA for 034720e
lib/OAuth2.php
@@ -1433,8 +1433,11 @@ protected function validateRedirectUri($inputUri, $storedUris)
1433
1434
foreach ($storedUris as $storedUri) {
1435
if (strcasecmp(substr($inputUri, 0, strlen($storedUri)), $storedUri) === 0) {
1436
- return parse_url($inputUri, PHP_URL_HOST) === parse_url($storedUri, PHP_URL_HOST) &&
1437
- parse_url($inputUri, PHP_URL_PORT) === parse_url($storedUri, PHP_URL_PORT);
+ if (parse_url($inputUri, PHP_URL_HOST) === parse_url($storedUri, PHP_URL_HOST)
+ && parse_url($inputUri, PHP_URL_PORT) === parse_url($storedUri, PHP_URL_PORT)
1438
+ ) {
1439
+ return true;
1440
+ }
1441
}
1442
1443
0 commit comments