Page 1 of 1

BUG?? CMSMS 1.1 => special chars problem with calendar and news module

Posted: Mon Jul 23, 2007 11:31 am
by frankbuchmann
I did post it in the german forum without an answer until now.

CMSMS 1.1 has a problem to show special chars in the frontend.
If you go to the detail (testet Module Calendar 0.7.8 and News 2.3 - language german) and you have the back-button-text (in german "Zurück" in the language file Zurück)  it will shown in the frontend as: Zurück , because CMSMS changes the code of & into &.

The same happens in the Calendar module with the moretext-link => moretext=">" is shown in frontend as << INFO >> because of changing the < to <. In the Database its correct with >. So CMSMS changes the code before displaying it in the frontend.

All templates are UTF-8.
It's a problem of CMSMS 1.1 and was tested on different servers with standard installation of CMSMS.

Hope someone can help.

Frank

Re: BUG?? CMSMS 1.1 => special chars problem with calendar and news module

Posted: Fri Jul 27, 2007 9:34 am
by Peter.Schwab
Hi Frank,

I got the same problem with my installation.

The reason is, that some developers seem to be a bit over-zelous when applying the "cms_htmlentities" function. As I understand it, this function should not be used for output text coming from the language-files.

When it is done, alle &something; are changed into &something; which ruins any page display.

I have an 1.1 installation due to go into production this weekend, so I will dive into the News-module code to find the culprit.

Stay tuned..

+peter+

Re: BUG?? CMSMS 1.1 => special chars problem with calendar and news module

Posted: Fri Jul 27, 2007 10:13 am
by Peter.Schwab
Found the culprit:

file: /lib/classes/module_support/modform.inc.php

line: 516 in function cms_module_CreateReturnLink

comment out

$contents = cms_htmlentities($contents);

and all is well.

It would bei fine, if this could find it's way in the official realease. Somehow.

Best wishes

+peter+

Re: BUG?? CMSMS 1.1 => special chars problem with calendar and news module

Posted: Fri Jul 27, 2007 3:43 pm
by frankbuchmann
Dear Peter,
thank you for this solution.
So one part of the problem is solved.

There is only a need for the calendar-module - moretext-link. In the meanwhile i will use a text without special chars  >:(


Frank

Re: BUG?? CMSMS 1.1 => special chars problem with calendar and news module

Posted: Sat Aug 25, 2007 9:56 am
by nicmare
Thank u very much. That works for me too :)