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.
1 parent 58e7419 commit e931652Copy full SHA for e931652
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( $url ) );
702
+ }
703
}
- } else {
704
+ } elseif ( wp_http_validate_url( $feed_url ) ) {
705
$feed_url = trim( $this->smart_convert( $feed_url ) );
706
+ } else {
707
+ $feed_url = '';
708
709
710
return $feed_url;
0 commit comments