PD filters tags from file descriptions...
I wanted to put a Paypal donation button into file description and on ANY save, the action parameter from the form tag was stripped.
This must be a Phoca Download issue, because when I put the same code to an article or a Custom HTML module, the action parameter is not stripped and everything works fine.
Tested with JCE, MCE, Codewarrior and "no editor".
[BUG] [J2.5.6] Tag-filtering in file descriptions
-
- Phoca Member
- Posts: 34
- Joined: 13 May 2012, 16:46
- Jan
- Phoca Hero
- Posts: 48595
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [BUG] [J2.5.6] Tag-filtering in file descriptions
Hi, this is becasue of security reasons, because the description can be displayed in javascript, etc. etc.
For changing it, you should remove the protection in XML file:
administrator\components\com_phocadownload\models\forms\phocadownloadfile.xml
Remove: filter="safehtml" or set own.
Jan
For changing it, you should remove the protection in XML file:
administrator\components\com_phocadownload\models\forms\phocadownloadfile.xml
Code: Select all
<field name="description" type="editor" buttons="true" hide="pagebreak,readmore" class="inputbox" label="COM_PHOCADOWNLOAD_FIELD_DESCRIPTION_LABEL" filter="safehtml" description="COM_PHOCADOWNLOAD_FIELD_DESCRIPTION_DESC" />
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 34
- Joined: 13 May 2012, 16:46
Re: [BUG] [J2.5.6] Tag-filtering in file descriptions
Thanks!
Is there a specific reason why you put an additional filter there - in addition to the central filter/blacklist/whitelist settings?
Is there a specific reason why you put an additional filter there - in addition to the central filter/blacklist/whitelist settings?
- Jan
- Phoca Hero
- Posts: 48595
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [BUG] [J2.5.6] Tag-filtering in file descriptions
Not sure which other central filter/blacklist/whitelist you mean?
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 34
- Joined: 13 May 2012, 16:46
Re: [BUG] [J2.5.6] Tag-filtering in file descriptions
Site -> Global Configuration -> Text filters
. Not sure, when it was introduced, I think, J!1.7

- Jan
- Phoca Hero
- Posts: 48595
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [BUG] [J2.5.6] Tag-filtering in file descriptions
I see now:
filter="JComponentHelper::filterText"
I will take a look at it for next release - to decide if the safehtml should stay or this should be managed by global configuration rights.
Thank you, Jan
filter="JComponentHelper::filterText"
I will take a look at it for next release - to decide if the safehtml should stay or this should be managed by global configuration rights.
Thank you, Jan
If you find Phoca extensions useful, please support the project