1
Support / Re: Links not working and more
« Last post by @rjen on January 29, 2023, 02:18:23 PM »That will work too
}
$article_data[$setting] = $value;
break;
}
// BBC we need to encode quotes
if (TP_SMF21) {
if( ($_REQUEST['tp_article_type'] == 'bbc') && ($setting == 'body') ) {
$value = $smcFunc['htmlspecialchars']($value, ENT_QUOTES);
}
}
$article_data[$setting] = $value;
break;
$context['TPortal']['editing_article'] = true;
$context['TPortal']['editarticle']['body'] = $smcFunc['htmlspecialchars']($context['TPortal']['editarticle']['body'], ENT_QUOTES);
$smcFunc['db_free_result']($request);
$context['TPortal']['editing_article'] = true;
if (TP_SMF21) {
if($context['TPortal']['editarticle']['type'] != 'bbc') {
$context['TPortal']['editarticle']['body'] = $smcFunc['htmlspecialchars']($context['TPortal']['editarticle']['body'], ENT_QUOTES);
}
}
else {
$context['TPortal']['editarticle']['body'] = $smcFunc['htmlspecialchars']($context['TPortal']['editarticle']['body'], ENT_QUOTES);
}
$smcFunc['db_free_result']($request);
You may have expected this, but I did not...