Changeset 2835252
- Timestamp:
- 12/16/2022 08:18:59 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-contentools/trunk/includes/class-contentools-rest.php
r2834661 r2835252 255 255 256 256 $php_auth_user = sanitize_user($_SERVER['PHP_AUTH_USER']); 257 $php_auth_pw = sanitize_text_field($_SERVER['PHP_AUTH_PW']);258 257 259 258 if (!isset($_SERVER['PHP_AUTH_USER']) && (isset($_SERVER['HTTP_AUTHORIZATION']) || isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION']))) { … … 271 270 if (!empty($header)) { 272 271 273 list($php_auth_user, $ php_auth_pw) = explode(':', base64_decode(substr($header, 6)));272 list($php_auth_user, $_SERVER['PHP_AUTH_PW']) = explode(':', base64_decode(substr($header, 6))); 274 273 275 274 } … … 285 284 286 285 $username = $php_auth_user; 287 $password = $ php_auth_pw;286 $password = $_SERVER['PHP_AUTH_PW']; 288 287 289 288 remove_filter('determine_current_user', array($this, 'determine_current_user'), 10);
Note: See TracChangeset
for help on using the changeset viewer.