1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-19 09:27:24 +01:00

Fix &amp problem

This commit is contained in:
8chan Admin 2014-02-07 02:35:29 +00:00
parent 0350f3b66a
commit 827156ea6f

View File

@ -1544,11 +1544,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) {