[Solved] 1.6.1 Html Entities when using cms_selflink

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
SideshowBob
Forum Members
Forum Members
Posts: 80
Joined: Thu Sep 13, 2007 10:50 am

[Solved] 1.6.1 Html Entities when using cms_selflink

Post by SideshowBob »

Hello everyone,

I have recently upgraded from 1.2.4 to 1.6.1 and I have noticed an issue when using cms_selflink.

On 1.2.4 the below code :

Code: Select all

{cms_selflink page='about' text='<img src="uploads/images/mylogo.gif" alt="My Alt text" />'}

would produce this html:

Code: Select all

<a href="http://www.mydomain.co.uk/about.htm" title="My Alt text"><img src="uploads/images/mylogo.gif" alt="My Alt text" /></a>
Since the upgrade, the output html is:

Code: Select all

<a href="http://www.mydomain.co.uk/about.htm" title="My Alt text" ><img src="uploads/images/mylogo.gif" alt="My Alt text" /></a>
Clearly this doesn't render correctly in a browser.

I have replicated this behavior on a clean installation of 1.6.1 but I don't know if this is a bug or user failure but it seems that anything within the 'text' parameter has htmlentities applied which clearly isn't desirable.

Thoughts and fixes welcome :-)
Bob
Last edited by SideshowBob on Tue Jul 28, 2009 3:01 pm, edited 1 time in total.
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: 1.6.1 Html Entities when using cms_selflink

Post by blast2007 »

See these two posts here and here.

regards
blast
SideshowBob
Forum Members
Forum Members
Posts: 80
Joined: Thu Sep 13, 2007 10:50 am

Re: 1.6.1 Html Entities when using cms_selflink

Post by SideshowBob »

Ah, thanks Blast. I've no idea how I missed these posts when searching  :-[

Should/has this been reported as a bug?
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: 1.6.1 Html Entities when using cms_selflink

Post by blast2007 »

SideshowBob wrote: Should/has this been reported as a bug?
I can't find an open bug in the forge, therefore I think this is new "feature".

regards
blast
SideshowBob
Forum Members
Forum Members
Posts: 80
Joined: Thu Sep 13, 2007 10:50 am

Re: [Solved] 1.6.1 Html Entities when using cms_selflink

Post by SideshowBob »

bug reported.
Locked

Return to “[locked] Installation, Setup and Upgrade”