Page 1 of 1

Charset problems for links, 1.6

Posted: Mon Jul 06, 2009 5:39 pm
by Terabyte
Well, upgrading went very smooth exept for this problem.

I upgraded several sites, some from 1.1, some from 1.41, some from 1.54 ... all to 1.6

In all sites I get this problem where having the chars "å,ä,ö" (Swedish) in the title of the links, gives a lot of HTML characters like "ä" "ö" ...

In regular text there are no issues, only in links.

What can have gone wrong or is it a bug?

Re: Charset problems for links, 1.6

Posted: Tue Jul 07, 2009 12:22 pm
by Terabyte
Anyone maybe could give a hint where to start looking for this error?

Re: Charset problems for links, 1.6

Posted: Tue Jul 07, 2009 4:26 pm
by stevew
Not sure this is the same problem, but if you are using {cms_selflink}-type links, try this thread: http://forum.cmsmadesimple.org/index.php/topic,34935.0.html.

Re: Charset problems for links, 1.6

Posted: Tue Jul 07, 2009 5:32 pm
by Terabyte
Thanks. I didn't find it there, but the thread led me to another:
http://forum.cmsmadesimple.org/index.ph ... #msg165925
blast2007 wrote: I think the main issue of  function.cms_selflink.php between 1.5.4 and 1.6 iis that in 1.6 release there's these lines
345

Code: Select all

$label = cms_htmlentities($label);
361

Code: Select all

$title = cms_htmlentities($title);
439

Code: Select all

$linktext = cms_htmlentities($linktext);
not present in 1.5.4 version.
All text in selflink is html escaped.
So commenting out, as suggested by blast2007, that lines 345,361,439 gives me a good result again.

So it is a bug ... Where should it be reported?