Browse Source

fix double quoting in links. thanks STI for reporting that

pull/40/head
czaks 11 years ago
committed by Michael Foster
parent
commit
900b4174cc
  1. 4
      inc/functions.php

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

Loading…
Cancel
Save