Support » Plugin: Freshdesk (official) » PHP Notice: Undefined index: host_url

  • George

    (@subscriptiongroup)


    Since installing the Freshdesk plugin, we are getting the following notice on our logs:

    
    (
        [type] => 8
        [message] => Undefined index: host_url
        [file] => /home/gruum/public_html/wp-content/plugins/freshdesk-support/fresh-desk.php
        [line] => 431
    )
    

    On that specific line, the code is

    
    if ( empty(esc_url_raw($_REQUEST['host_url'])) || empty(sanitize_text_field( $_GET['action'] ))) {
    

    and it should be updated to

    
    if ( !isset($_REQUEST['host_url']) || empty(esc_url_raw($_REQUEST['host_url'])) || empty(sanitize_text_field( $_GET['action'] ))) {
    
    • This topic was modified 2 months, 1 week ago by George.
  • You must be logged in to reply to this topic.