Changeset 2833939
- Timestamp:
- 12/14/2022 05:05:10 PM (3 years ago)
- Location:
- rsscloud/trunk
- Files:
-
- 2 edited
-
notification-request.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
rsscloud/trunk/notification-request.php
r2833907 r2833939 40 40 $domain = str_replace( '@', '', $_POST['domain'] ); 41 41 $notify_url = $domain . ':' . $port . $path; 42 if ( false === strpos( $notify_url, 'http://' ) ) 43 $notify_url = 'http://' . $notify_url; 42 44 43 45 $challenge = rsscloud_generate_challenge( ); … … 45 47 $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, ) ); 46 48 } else { 49 if ( false === strpos( $notify_url, 'http://' ) ) 50 $notify_url = 'http://' . $notify_url; 51 47 52 $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'] ) ) ); 48 53 } -
rsscloud/trunk/readme.txt
r2833907 r2833939 16 16 = 0.5.0 = 17 17 * Updates to support PHP 8+ 18 * Check for http scheme in the $notify_url, add it if missing 18 19 19 20 = 0.4.2 =
Note: See TracChangeset
for help on using the changeset viewer.