[BUG] [J2.5.6] Tag-filtering in file descriptions

Phoca Download - download manager
sgofferj
Phoca Member
Phoca Member
Posts: 34
Joined: 13 May 2012, 16:46

[BUG] [J2.5.6] Tag-filtering in file descriptions

Post by sgofferj »

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".
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48595
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [BUG] [J2.5.6] Tag-filtering in file descriptions

Post by Jan »

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

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" />
Remove: filter="safehtml" or set own.

Jan
If you find Phoca extensions useful, please support the project
sgofferj
Phoca Member
Phoca Member
Posts: 34
Joined: 13 May 2012, 16:46

Re: [BUG] [J2.5.6] Tag-filtering in file descriptions

Post by sgofferj »

Thanks!
Is there a specific reason why you put an additional filter there - in addition to the central filter/blacklist/whitelist settings?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48595
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [BUG] [J2.5.6] Tag-filtering in file descriptions

Post by Jan »

Not sure which other central filter/blacklist/whitelist you mean?
If you find Phoca extensions useful, please support the project
sgofferj
Phoca Member
Phoca Member
Posts: 34
Joined: 13 May 2012, 16:46

Re: [BUG] [J2.5.6] Tag-filtering in file descriptions

Post by sgofferj »

Site -> Global Configuration -> Text filters :). Not sure, when it was introduced, I think, J!1.7
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48595
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [BUG] [J2.5.6] Tag-filtering in file descriptions

Post by Jan »

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
If you find Phoca extensions useful, please support the project
Post Reply