By Kevin Ortman on Wednesday, 08 January 2014
Posted in General Issues
Replies 3
Likes 0
Views 10.8K
Votes 0
Emoticons in conversation messages generate invalid HTML.

FILE: administrator/components/com_easysocial/tables/conversationmessage.php
FUNCTION: getContents
SUMMARY:
parseBBCode() is called before replaceHyperlinks(), thus replaceHyperlinks() mangles the HTML tags generated by parseBBCode, including emoticons IMG tag.
I was able to work around this by changing the order (replaceHyperlinks, parseBBCode, replaceEmails), it works but has not been fully tested and may be insecure.

REPRODUCE: Create a message with an emoticon shortcut "This is a test ".


// Apply bbcode
$message = Foundry::string()->parseBBCode( $message );

// Apply e-mail replacements
$message = Foundry::string()->replaceEmails( $message );

// Apply hyperlinks
$message = Foundry::string()->replaceHyperlinks( $message );


Regards,
Kevin
Thanks Kevin, this will be fixed in the next release At the mean time, download the attached file and upload it into /administrator/components/com_easysocial/tables/
·
Wednesday, 08 January 2014 12:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks again, Mark.
·
Wednesday, 08 January 2014 12:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

You're welcome.
·
Thursday, 09 January 2014 11:23
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post