We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 58e7419 + 1601157 commit c6b8fc8Copy full SHA for c6b8fc8
includes/abstract/feedzy-rss-feeds-admin-abstract.php
@@ -697,10 +697,14 @@ public function normalize_urls( $raw ) {
697
$feed_url = apply_filters( 'feedzy_get_feed_url', $feeds );
698
if ( is_array( $feed_url ) ) {
699
foreach ( $feed_url as $index => $url ) {
700
- $feed_url[ $index ] = trim( $this->smart_convert( $url ) );
+ if ( wp_http_validate_url( $url ) ) {
701
+ $feed_url[ $index ] = trim( $this->smart_convert( esc_url_raw( $url ) ) );
702
+ }
703
}
704
+ } elseif ( wp_http_validate_url( $feed_url ) ) {
705
+ $feed_url = trim( $this->smart_convert( esc_url_raw( $feed_url ) ) );
706
} else {
- $feed_url = trim( $this->smart_convert( $feed_url ) );
707
+ $feed_url = '';
708
709
710
return $feed_url;
0 commit comments