|
@@ -1016,7 +1016,7 @@ function EditSmileys()
|
|
|
global $smcFunc;
|
|
|
return $smcFunc[\'htmlspecialchars\']($rowData[\'description\']);
|
|
|
' : '
|
|
|
- global $context, $txt, $modSettings;
|
|
|
+ global $context, $txt, $modSettings, $smcFunc;
|
|
|
|
|
|
// Check if there are smileys missing in some sets.
|
|
|
$missing_sets = array();
|
|
@@ -1146,8 +1146,8 @@ function EditSmileys()
|
|
|
foreach ($context['smiley_sets'] as $i => $set)
|
|
|
$context['smiley_sets'][$i] = array(
|
|
|
'id' => $i,
|
|
|
- 'path' => htmlspecialchars($set),
|
|
|
- 'name' => htmlspecialchars($set_names[$i]),
|
|
|
+ 'path' => $smcFunc['htmlspecialchars']($set),
|
|
|
+ 'name' => $smcFunc['htmlspecialchars']($set_names[$i]),
|
|
|
'selected' => $set == $modSettings['smiley_sets_default']
|
|
|
);
|
|
|
|
|
@@ -1167,7 +1167,7 @@ function EditSmileys()
|
|
|
{
|
|
|
if (!in_array($entry, $context['filenames']) && in_array(strrchr($entry, '.'), array('.jpg', '.gif', '.jpeg', '.png')))
|
|
|
$context['filenames'][strtolower($entry)] = array(
|
|
|
- 'id' => htmlspecialchars($entry),
|
|
|
+ 'id' => $smcFunc['htmlspecialchars']($entry),
|
|
|
'selected' => false,
|
|
|
);
|
|
|
}
|
|
@@ -1189,9 +1189,9 @@ function EditSmileys()
|
|
|
$context['current_smiley'] = $smcFunc['db_fetch_assoc']($request);
|
|
|
$smcFunc['db_free_result']($request);
|
|
|
|
|
|
- $context['current_smiley']['code'] = htmlspecialchars($context['current_smiley']['code']);
|
|
|
- $context['current_smiley']['filename'] = htmlspecialchars($context['current_smiley']['filename']);
|
|
|
- $context['current_smiley']['description'] = htmlspecialchars($context['current_smiley']['description']);
|
|
|
+ $context['current_smiley']['code'] = $smcFunc['htmlspecialchars']($context['current_smiley']['code']);
|
|
|
+ $context['current_smiley']['filename'] = $smcFunc['htmlspecialchars']($context['current_smiley']['filename']);
|
|
|
+ $context['current_smiley']['description'] = $smcFunc['htmlspecialchars']($context['current_smiley']['description']);
|
|
|
|
|
|
if (isset($context['filenames'][strtolower($context['current_smiley']['filename'])]))
|
|
|
$context['filenames'][strtolower($context['current_smiley']['filename'])]['selected'] = true;
|
|
@@ -1341,9 +1341,9 @@ function EditSmileyOrder()
|
|
|
$location = empty($row['hidden']) ? 'postform' : 'popup';
|
|
|
$context['smileys'][$location]['rows'][$row['smiley_row']][] = array(
|
|
|
'id' => $row['id_smiley'],
|
|
|
- 'code' => htmlspecialchars($row['code']),
|
|
|
- 'filename' => htmlspecialchars($row['filename']),
|
|
|
- 'description' => htmlspecialchars($row['description']),
|
|
|
+ 'code' => $smcFunc['htmlspecialchars']($row['code']),
|
|
|
+ 'filename' => $smcFunc['htmlspecialchars']($row['filename']),
|
|
|
+ 'description' => $smcFunc['htmlspecialchars']($row['description']),
|
|
|
'row' => $row['smiley_row'],
|
|
|
'order' => $row['smiley_order'],
|
|
|
'selected' => !empty($_REQUEST['move']) && $_REQUEST['move'] == $row['id_smiley'],
|
|
@@ -1528,9 +1528,9 @@ function InstallSmileySet()
|
|
|
$has_readme = true;
|
|
|
$type = 'package_' . $action['type'];
|
|
|
if (file_exists($packagesdir . '/temp/' . $base_path . $action['filename']))
|
|
|
- $context[$type] = htmlspecialchars(trim(file_get_contents($packagesdir . '/temp/' . $base_path . $action['filename']), "\n\r"));
|
|
|
+ $context[$type] = $smcFunc['htmlspecialchars'](trim(file_get_contents($packagesdir . '/temp/' . $base_path . $action['filename']), "\n\r"));
|
|
|
elseif (file_exists($action['filename']))
|
|
|
- $context[$type] = htmlspecialchars(trim(file_get_contents($action['filename']), "\n\r"));
|
|
|
+ $context[$type] = $smcFunc['htmlspecialchars'](trim(file_get_contents($action['filename']), "\n\r"));
|
|
|
|
|
|
if (!empty($action['parse_bbc']))
|
|
|
{
|
|
@@ -1870,10 +1870,10 @@ function EditMessageIcons()
|
|
|
'icon' => array(
|
|
|
'data' => array(
|
|
|
'function' => create_function('$rowData', '
|
|
|
- global $settings;
|
|
|
+ global $settings, $smcFunc;
|
|
|
|
|
|
$images_url = $settings[file_exists(sprintf(\'%1$s/images/post/%2$s.png\', $settings[\'theme_dir\'], $rowData[\'filename\'])) ? \'actual_images_url\' : \'default_images_url\'];
|
|
|
- return sprintf(\'<img src="%1$s/post/%2$s.png" alt="%3$s" />\', $images_url, $rowData[\'filename\'], htmlspecialchars($rowData[\'title\']));
|
|
|
+ return sprintf(\'<img src="%1$s/post/%2$s.png" alt="%3$s" />\', $images_url, $rowData[\'filename\'], $smcFunc[\'htmlspecialchars\']($rowData[\'title\']));
|
|
|
'),
|
|
|
'class' => 'centercol',
|
|
|
),
|