Skip to content

Commit

Permalink
Merge pull request #270 from janboddez/janboddez-debug-patch
Browse files Browse the repository at this point in the history
Fix #269
  • Loading branch information
dshanske authored Jul 7, 2024
2 parents f19ddb1 + 1d389ae commit 028bc0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-indieauth-debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function log_rest_api_errors( $result, $server, $request ) {
$headers = $request->get_headers();
$token = isset( $headers['authorization'] ) ? 'Present' : 'Absent';
$data = $result->get_data();
if ( isset( $data['access_token'] ) ) {
if ( is_array( $data ) && isset( $data['access_token'] ) ) {
// Remove actual token from logs
$data['access_token'] = 'XXXX';
}
Expand Down

0 comments on commit 028bc0a

Please sign in to comment.