Plugin Directory

Changeset 2833939


Ignore:
Timestamp:
12/14/2022 05:05:10 PM (3 years ago)
Author:
josephscott
Message:

Check for http scheme in the $notify_url, add it if missing

Location:
rsscloud/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rsscloud/trunk/notification-request.php

    r2833907 r2833939  
    4040        $domain = str_replace( '@', '', $_POST['domain'] );
    4141        $notify_url = $domain . ':' . $port . $path;
     42        if ( false === strpos( $notify_url, 'http://' ) )
     43            $notify_url = 'http://' . $notify_url;
    4244
    4345        $challenge = rsscloud_generate_challenge( );
     
    4547        $result = wp_safe_remote_get( $notify_url . '?url=' . esc_url( $_POST['url1'] ) . '&challenge=' . $challenge, array( 'method' => 'GET', 'timeout' => RSSCLOUD_HTTP_TIMEOUT, 'user-agent' => RSSCLOUD_USER_AGENT, 'port' => $port, ) );
    4648    } else {
     49        if ( false === strpos( $notify_url, 'http://' ) )
     50            $notify_url = 'http://' . $notify_url;
     51
    4752        $result = wp_safe_remote_post( $notify_url, array( 'method' => 'POST', 'timeout' => RSSCLOUD_HTTP_TIMEOUT, 'user-agent' => RSSCLOUD_USER_AGENT, 'port' => $port, 'body' => array( 'url' => $_POST['url1'] ) ) );
    4853    }
  • rsscloud/trunk/readme.txt

    r2833907 r2833939  
    1616= 0.5.0 =
    1717* Updates to support PHP 8+
     18* Check for http scheme in the $notify_url, add it if missing
    1819
    1920= 0.4.2 =
Note: See TracChangeset for help on using the changeset viewer.