Skip to content

Commit 1601157

Browse files
escaping the url
1 parent 99a5cef commit 1601157

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/abstract/feedzy-rss-feeds-admin-abstract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,11 +698,11 @@ public function normalize_urls( $raw ) {
698698
if ( is_array( $feed_url ) ) {
699699
foreach ( $feed_url as $index => $url ) {
700700
if ( wp_http_validate_url( $url ) ) {
701-
$feed_url[ $index ] = trim( $this->smart_convert( $url ) );
701+
$feed_url[ $index ] = trim( $this->smart_convert( esc_url_raw( $url ) ) );
702702
}
703703
}
704704
} elseif ( wp_http_validate_url( $feed_url ) ) {
705-
$feed_url = trim( $this->smart_convert( $feed_url ) );
705+
$feed_url = trim( $this->smart_convert( esc_url_raw( $feed_url ) ) );
706706
} else {
707707
$feed_url = '';
708708
}

0 commit comments

Comments
 (0)