Changeset 4944
- Timestamp:
- 02/19/2017 08:47:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
r4914 r4944 152 152 // parse_url is used here to remove any additional query args from the REQUEST_URI before redirection 153 153 // The SSO code handles the urlencoding of the redirect_to parameter 154 $url_parts = parse_url( 'https://wordpress.org'.$_SERVER['REQUEST_URI']);154 $url_parts = parse_url( set_url_scheme( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ) ); 155 155 $constructed_url = $url_parts['scheme'] . '://' . $url_parts['host'] . (isset($url_parts['path'])?$url_parts['path']:''); 156 $login_url = $constructed_url; 156 157 if ( class_exists( 'WPOrg_SSO' ) ) { 158 $login_url = $constructed_url; 159 } else { 160 $login_url = add_query_arg( 'redirect_to', urlencode( $constructed_url ), $login_url ); 161 } 157 162 } 158 163 return $login_url;
Note: See TracChangeset
for help on using the changeset viewer.