Skip to content

Commit

Permalink
DO NOT MERGE: add some debug information
Browse files Browse the repository at this point in the history
  • Loading branch information
stklcode committed May 13, 2024
1 parent 899df20 commit c26574c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions antispam_bee.php
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,12 @@ public static function precheck_incoming_request() {
return;
}

// phpcs:disable
echo '<DEBUG>';
var_dump( $_SERVER );
echo '</DEBUG>';
// phpcs: enable

$request_uri = self::get_key( $_SERVER, 'SCRIPT_NAME' );
$request_path = self::parse_url( $request_uri, 'path' );

Expand Down Expand Up @@ -1168,6 +1174,12 @@ public static function precheck_incoming_request() {
public static function handle_incoming_request( $comment ) {
$comment['comment_author_IP'] = self::get_client_ip();

// phpcs:disable
echo '<DEBUG>';
var_dump( $_SERVER );
echo '</DEBUG>';
// phpcs: enable

$request_uri = self::get_key( $_SERVER, 'SCRIPT_NAME' );
$request_path = self::parse_url( $request_uri, 'path' );

Expand Down

0 comments on commit c26574c

Please sign in to comment.