fix double quoting in links. thanks STI for reporting that

This commit is contained in:
czaks 2014-01-17 00:30:04 +01:00 committed by Michael Foster
parent b06df1b03b
commit 900b4174cc

View File

@ -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 '<a ' . implode(' ', $parts) . '>' . utf8tohtml($link['text']) . '</a>' . $after;
return '<a ' . implode(' ', $parts) . '>' . $link['text'] . '</a>' . $after;
}
function unicodify($body) {