From 900b4174cc8bfb37985c2671555a3263b836d791 Mon Sep 17 00:00:00 2001 From: czaks Date: Fri, 17 Jan 2014 00:30:04 +0100 Subject: [PATCH] fix double quoting in links. thanks STI for reporting that --- inc/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/functions.php b/inc/functions.php index f6a217a5..f8927fe4 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1552,11 +1552,11 @@ function markup_url($matches) { foreach ($link as $attr => $value) { if ($attr == 'text' || $attr == 'after') continue; - $parts[] = $attr . '="' . htmlspecialchars($value) . '"'; + $parts[] = $attr . '="' . $value . '"'; } if (isset($link['after'])) $after = $link['after'] . $after; - return '' . utf8tohtml($link['text']) . '' . $after; + return '' . $link['text'] . '' . $after; } function unicodify($body) {