HEX
Server: LiteSpeed
System: Linux premium263.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: eastcjee (525)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/wp-content/plugins/ninja-forms/includes/AJAX/Controllers/JSError.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;

class NF_AJAX_Controllers_JSError
{
    public function __construct()
    {
        // Ajax calls are handled by 'log_error' in this file
        add_action( 'wp_ajax_nf_log_js_error',   array( $this, 'log_error' ) );
        add_action( 'wp_ajax_nopriv_nf_log_js_error',   array( $this, 'log_error' ) );
    }

    public function log_error()
    {
        check_ajax_referer( 'ninja_forms_display_nonce', 'security' );
        $message = esc_html( stripslashes( $_REQUEST[ 'message' ] ) );
        $url = esc_html( stripslashes( $_REQUEST[ 'url' ] ) );
        $lineNumber = esc_html( stripslashes( $_REQUEST[ 'lineNumber' ] ) );

        Ninja_Forms()->logger()->emergency( $message . ' in ' . $url . ' on line ' . $lineNumber );
 
        die( 1 );
    }
}