PDA


View Full Version : [Current Poll] Error display for "&" letter


PosIklan
02-15-2008, 05:28 AM
Hi All,

I've just install CMPS in testing environment, one error I noticed in displaying Current Poll in left column.

It's only error in displaying the title for letter &


Title : Which car you like & Why?
Display: Which car you like & Why?

Just wanna inform the developer...

Thanks.

Brian
02-15-2008, 02:54 PM
Thank you for pointing this out. I've just applied the fix to the modules/currentpoll.php file in the download package here, so if you will download the files again and replace your existing currentpoll.php file with the updated version, that should take care of the issue.
Or, if you'd rather apply the fix manually, just look in the file for this line:
$pollmod['question'] = $bbcode_parser->parse($pollmod['question'], $pollmod['forumid'], $mod_options['portal_poll_allowsmilies']);

And replace with this:
$pollmod['question'] = $bbcode_parser->parse(unhtmlspecialchars($pollmod['question']), $pollmod['forumid'], $mod_options['portal_poll_allowsmilies']);

PosIklan
02-18-2008, 09:47 PM
Hi Brian,

Sory for this late reply, have been off for almost a week.

Have applied your code, and it work perfectly.

Thanks... :)