Add sanitize_url. Don't convert ampersands in URLs when saving to DB. fixes #4411 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1001,7 +1001,7 @@ function wp_widget_rss_control($number) {
|
||||
$options = $newoptions = get_option('widget_rss');
|
||||
if ( $_POST["rss-submit-$number"] ) {
|
||||
$newoptions[$number]['items'] = (int) $_POST["rss-items-$number"];
|
||||
$url = clean_url(strip_tags(stripslashes($_POST["rss-url-$number"])));
|
||||
$url = sanitize_url(strip_tags(stripslashes($_POST["rss-url-$number"])));
|
||||
$newoptions[$number]['title'] = trim(strip_tags(stripslashes($_POST["rss-title-$number"])));
|
||||
if ( $url !== $options[$number]['url'] ) {
|
||||
require_once(ABSPATH . WPINC . '/rss.php');
|
||||
|
||||
Reference in New Issue
Block a user