From: River Tarnell Date: Thu, 14 Oct 2004 09:18:36 +0000 (+0000) Subject: restore accidentally broken functionality X-Git-Tag: 1.5.0alpha1~1539 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=47f1f432aa822b428d7537acf89b8a59e55def4a;p=lhc%2Fweb%2Fwiklou.git restore accidentally broken functionality --- diff --git a/includes/Credits.php b/includes/Credits.php index ffbeeff57a..849fb00d81 100644 --- a/includes/Credits.php +++ b/includes/Credits.php @@ -125,9 +125,9 @@ function getContributorCredits($article, $cnt, $showIfMax) { foreach ($contributors as $user_parts) { if ($user_parts[0] != 0) { if ($wgAllowRealName && !empty($user_parts[2])) { - $real_names[] = htmlspecialchars( creditLink($user_parts[1], $user_parts[2]) ); + $real_names[] = creditLink($user_parts[1], $user_parts[2]); } else { - $user_names[] = htmlspecialchars( creditLink($user_parts[1]) ); + $user_names[] = creditLink($user_parts[1]); } } else { $anon = wfMsg('anonymous'); @@ -171,7 +171,7 @@ function creditLink($user_name, $link_text = '') { global $wgUser, $wgContLang; $skin = $wgUser->getSkin(); return $skin->makeLink($wgContLang->getNsText(NS_USER) . ':' . $user_name, - (empty($link_text)) ? $user_name : $link_text); + htmlspecialchars( (empty($link_text)) ? $user_name : $link_text )); } /**