Ticket #7361: 002-use-redirect_remote_user-for-authorization.patch
File 002-use-redirect_remote_user-for-authorization.patch, 602 bytes (added by , 16 years ago) |
---|
-
wp-app.php
1074 1074 if(isset($_SERVER['HTTP_AUTHORIZATION'])) { 1075 1075 list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = 1076 1076 explode(':', base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6))); 1077 } else if (isset($_SERVER['REDIRECT_REMOTE_USER'])) { 1078 list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = 1079 explode(':', base64_decode(substr($_SERVER['REDIRECT_REMOTE_USER'], 6))); 1077 1080 } 1078 1081 1079 1082 // If Basic Auth is working...