We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8afca6a + 5108baf commit 52b5fc8Copy full SHA for 52b5fc8
1 file changed
onelogin-saml-sso/php/functions.php
@@ -291,10 +291,8 @@ function saml_acs() {
291
wp_redirect(home_url());
292
} else {
293
if (strpos($_REQUEST['RelayState'], 'redirect_to') !== false) {
294
- $urlinfo = parse_url($_REQUEST['RelayState']);
295
- $parameters = array();
296
- parse_str($urlinfo['query'], $parameters);
297
- $target = urldecode($parameters['redirect_to']);
+ $query = wp_parse_url($_REQUEST['RelayState'], PHP_URL_QUERY);
+ parse_str( $query, $parameters );
298
wp_redirect(urldecode($parameters['redirect_to']));
299
300
wp_redirect($_REQUEST['RelayState']);
0 commit comments