From ee0bee021fab92892a4a829ce38370ff79b9637c Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 25 Feb 2005 17:46:27 +0000 Subject: [PATCH] Escape amps in links manager links - http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/ git-svn-id: http://svn.automattic.com/wordpress/trunk@2382 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/links.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/links.php b/wp-includes/links.php index a7aa025ecd..1997c54d88 100644 --- a/wp-includes/links.php +++ b/wp-includes/links.php @@ -175,9 +175,8 @@ function get_links($category = -1, $before = '', $after = '
', echo get_settings('links_recently_updated_prepend'); } $the_link = '#'; - if (($row->link_url != null) && ($row->link_url != '')) { - $the_link = $row->link_url; - } + if ( !empty($row->link_url) ) + $the_link = wp_specialchars($row->link_url); $rel = $row->link_rel; if ($rel != '') { $rel = " rel='$rel'";