mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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: http://svn.automattic.com/wordpress/trunk@17260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b8c4418d50
commit
3e45fdb260
@ -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…
Reference in New Issue
Block a user