1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

#4547: Strip BBCode from download_shortcodes JavaScript alerts

Fixes: #4547

Discussion:
https://github.com/e107inc/e107/pull/4547#issuecomment-917229877
This commit is contained in:
Nick Liu 2021-09-15 16:05:31 -05:00
parent 6fa4982d30
commit 55200fe686
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637

View File

@ -373,7 +373,7 @@ class download_shortcodes extends e_shortcode
if ($parm == "request")
{
$agreetext = $tp->toAttribute($tp->toJSON($tp->filter($tp->toHTML($this->pref['agree_text'],FALSE,'DESCRIPTION'), 'str')));
$agreetext = $tp->toAttribute($tp->toJSON($tp->toText($this->pref['agree_text'],FALSE,'DESCRIPTION'), 'str'));
if ($this->var['download_mirror_type'])
{
@ -473,7 +473,7 @@ class download_shortcodes extends e_shortcode
$tp = e107::getParser();
$img = '';
$agreetext = !empty($this->pref['agree_text']) ? $tp->toAttribute($tp->toJSON($tp->filter($tp->toHTML($this->pref['agree_text'],FALSE,'DESCRIPTION'), 'str'))) : '';
$agreetext = !empty($this->pref['agree_text']) ? $tp->toAttribute($tp->toJSON($tp->toText($this->pref['agree_text'],FALSE,'DESCRIPTION'), 'str')) : '';
if(defined('IMAGE_DOWNLOAD'))
{