|
@@ -1046,7 +1046,7 @@ function Display()
|
|
|
|
|
|
$context['jump_to'] = array(
|
|
|
'label' => addslashes(un_htmlspecialchars($txt['jump_to'])),
|
|
|
- 'board_name' => htmlspecialchars(strtr(strip_tags($board_info['name']), array('&' => '&'))),
|
|
|
+ 'board_name' => $smcFunc['htmlspecialchars'](strtr(strip_tags($board_info['name']), array('&' => '&'))),
|
|
|
'child_level' => $board_info['child_level'],
|
|
|
);
|
|
|
|
|
@@ -1556,12 +1556,12 @@ function loadAttachmentContext($id_msg)
|
|
|
{
|
|
|
$attachmentData[$i] = array(
|
|
|
'id' => $attachment['id_attach'],
|
|
|
- 'name' => preg_replace('~&#(\\d{1,7}|x[0-9a-fA-F]{1,6});~', '&#\\1;', htmlspecialchars($attachment['filename'])),
|
|
|
+ 'name' => preg_replace('~&#(\\d{1,7}|x[0-9a-fA-F]{1,6});~', '&#\\1;', $smcFunc['htmlspecialchars']($attachment['filename'])),
|
|
|
'downloads' => $attachment['downloads'],
|
|
|
'size' => ($attachment['filesize'] < 1024000) ? round($attachment['filesize'] / 1024, 2) . ' ' . $txt['kilobyte'] : round($attachment['filesize'] / 1024 / 1024, 2) . ' ' . $txt['megabyte'],
|
|
|
'byte_size' => $attachment['filesize'],
|
|
|
'href' => $scripturl . '?action=dlattach;topic=' . $topic . '.0;attach=' . $attachment['id_attach'],
|
|
|
- 'link' => '<a href="' . $scripturl . '?action=dlattach;topic=' . $topic . '.0;attach=' . $attachment['id_attach'] . '">' . htmlspecialchars($attachment['filename']) . '</a>',
|
|
|
+ 'link' => '<a href="' . $scripturl . '?action=dlattach;topic=' . $topic . '.0;attach=' . $attachment['id_attach'] . '">' . $smcFunc['htmlspecialchars']($attachment['filename']) . '</a>',
|
|
|
'is_image' => !empty($attachment['width']) && !empty($attachment['height']) && !empty($modSettings['attachmentShowImages']),
|
|
|
'is_approved' => $attachment['approved'],
|
|
|
);
|