diff --git a/web/app/libs/uoj-html-lib.php b/web/app/libs/uoj-html-lib.php index d8b63ea..9c335c5 100644 --- a/web/app/libs/uoj-html-lib.php +++ b/web/app/libs/uoj-html-lib.php @@ -1359,8 +1359,9 @@ function echoRanklist($config = array()) { $header_row .= ''.UOJLocale::get('solved').''; $header_row .= ''; + $purifier = HTML::pruifier(); $users = array(); - $print_row = function($user, $now_cnt) use (&$users, $config) { + $print_row = function($user, $now_cnt) use (&$users, $config, $purifier) { if (!$users) { if ($now_cnt == 1) { $rank = 1; @@ -1376,13 +1377,9 @@ function echoRanklist($config = array()) { echo ''; echo '' . $user['rank'] . ''; echo '' . getUserLink($user['username']) . ''; - $motto_id = uniqid("motto-{$user['username']}-"); - echo ""; - $motto = rawurlencode($user['motto']); - $dom_sanitize_config = DOM_SANITIZE_CONFIG; - echo ''; + echo ""; + echo $purifier->purify($user['motto']); + echo ""; echo '' . $user['ac_num'] . ''; echo '';