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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
frankbuchmann

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

Post 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
Peter.Schwab
Forum Members
Forum Members
Posts: 15
Joined: Tue Feb 20, 2007 3:44 pm

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

Post 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+
Peter.Schwab
Forum Members
Forum Members
Posts: 15
Joined: Tue Feb 20, 2007 3:44 pm

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

Post 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+
frankbuchmann

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

Post 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
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

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

Post by nicmare »

Thank u very much. That works for me too :)
Locked

Return to “CMSMS Core”