fix double quoting in links. thanks STI for reporting that
This commit is contained in:
parent
b06df1b03b
commit
900b4174cc
@ -1552,11 +1552,11 @@ function markup_url($matches) {
|
|||||||
foreach ($link as $attr => $value) {
|
foreach ($link as $attr => $value) {
|
||||||
if ($attr == 'text' || $attr == 'after')
|
if ($attr == 'text' || $attr == 'after')
|
||||||
continue;
|
continue;
|
||||||
$parts[] = $attr . '="' . htmlspecialchars($value) . '"';
|
$parts[] = $attr . '="' . $value . '"';
|
||||||
}
|
}
|
||||||
if (isset($link['after']))
|
if (isset($link['after']))
|
||||||
$after = $link['after'] . $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) {
|
function unicodify($body) {
|
||||||
|
Loading…
Reference in New Issue
Block a user