Skip to content

Commit 68860ac

Browse files
committed
headers processing not skipped
1 parent 0e3fabd commit 68860ac

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

wordpress-fail2ban/block-bad-requests/wp-login-bad-request.inc.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,13 +302,15 @@ private function trigger() {
302302
error_log( $error_msg );
303303
}
304304

305-
// help learning attack internals
305+
// helps learning attack internals
306+
/* too verbose
306307
$headers = array();
307308
foreach ( $_SERVER as $header => $value ) {
308309
if ( 'HTTP_' === substr( $header, 0, 5 ) )
309310
$headers[$header] = addslashes( $value );
310311
}
311-
//error_log( 'HTTP HEADERS: ' . serialize( $headers ) );
312+
error_log( 'HTTP HEADERS: ' . serialize( $headers ) );
313+
*/
312314
error_log( 'HTTP REQUEST: ' . serialize( $_REQUEST ) );
313315

314316
ob_get_level() && ob_end_clean();

0 commit comments

Comments
 (0)