Disallow a self-reference on RSS widget save, which would DoS a site. Checking home/siteurl should cover the vast majority of cases. see #8910.
git-svn-id: https://develop.svn.wordpress.org/trunk@17260 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
173b89b166
commit
c4e9ac89ba
@ -712,6 +712,10 @@ class WP_Widget_RSS extends WP_Widget {
|
||||
if ( empty($url) )
|
||||
return;
|
||||
|
||||
// self-url destruction sequence
|
||||
if ( $url == site_url() || $url == home_url() )
|
||||
return;
|
||||
|
||||
$rss = fetch_feed($url);
|
||||
$title = $instance['title'];
|
||||
$desc = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user