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:
parent
6fa4982d30
commit
55200fe686
@ -373,7 +373,7 @@ class download_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
if ($parm == "request")
|
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'])
|
if ($this->var['download_mirror_type'])
|
||||||
{
|
{
|
||||||
@ -473,7 +473,7 @@ class download_shortcodes extends e_shortcode
|
|||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
$img = '';
|
$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'))
|
if(defined('IMAGE_DOWNLOAD'))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user