Changeset 10980
- Timestamp:
- 05/14/2021 05:42:34 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/wporg-sso/class-wporg-sso.php
r10978 r10980 199 199 } 200 200 201 // DEBUG, store for later incase the filters alter it.202 $requested_to = $to;203 204 201 // When available, sanitize the redirect prior to redirecting. 205 202 // This isn't strictly needed, but prevents harmless invalid inputs being passed through to the Location header. … … 216 213 } 217 214 218 // DEBUG - login.w.org redirecting to self?219 if ( function_exists( 'wp_cache_set' ) ) {220 $debug_payload = [221 'trace' => debug_backtrace( false ),222 'get' => $_GET,223 'post' => $_POST,224 'server' => $_SERVER,225 'to' => $to,226 'to_orig' => $requested_to,227 ];228 $debug_key = sha1( serialize( $debug_payload ) );229 wp_cache_set( $debug_key, $debug_payload, 'debug', 60*60 );230 header( 'X-Debug-Location: ' . $debug_key );231 }232 233 215 header( 234 216 'Location: ' . $to, 235 217 true, 236 302 //preg_match( '/^30(1|2)$/', $status ) ? $status : 302218 preg_match( '/^30(1|2)$/', $status ) ? $status : 302 237 219 ); 238 220
Note: See TracChangeset
for help on using the changeset viewer.