Closed (fixed)
Project:
VK CrossPoster
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2011 at 11:02 UTC
Updated:
6 Nov 2011 at 09:50 UTC
The output of the $message should be cleared by the html_entity_decode() to prevent output like:
До конца ноября Госдума рассмотрит законопроект «Единой России», который обязывает приезжих сдавать экзамен по русскому языку. Это коснется трудовых мигрантов в сфере ЖКХ, торговли и бытового обслуживания.
This can be done by replacing
$message = htmlspecialchars_decode($message, $node->filter);
at string 143 with
$message = htmlspecialchars_decode(html_entity_decode($message, ENT_QUOTES, 'UTF-8'), $node->filter);
As result:
До конца ноября Госдума рассмотрит законопроект «Единой России», который обязывает приезжих сдавать экзамен по русскому языку. Это коснется трудовых мигрантов в сфере ЖКХ, торговли и бытового обслуживания.
Comments
Comment #1
spleshkaWhat about this:
Comment #2
areafix commentedThis isn't working.
From PHP Manual:
i.e. &, ", ', <, > only but not «, », „, “ or samething else.
Comment #3
spleshkaOk, I'll do it in your way.
Comment #4
spleshkaFixed at commit ea981ec
Comment #5
spleshka