Customizing SMF > Mambo Bridge Support
I cannot login to SMF directly via Mambo CB (Solved - partly)
aht961:
--- Quote from: Kindred on February 02, 2012, 02:01:51 PM ---did you install SMF with the UTF-8 language and UTF-8 database?
--- End quote ---
Yes I did, and without the "bridge" it functions flawlessly. When the bridge is "on" with lang sync, the forum just keeps the ISO-8859 charset language. If you try to choose the utf-8 version, it just falls back to the default. Turn the bridge's sync off, everything is fine (but then the email's body is not displayed in the browser (in some). I get the impression, that SMF gets a wrong parameter from mambo and assumes that it is a ISO-8859 charset :(
SOLVED: In the file /com_smf/smf.php, are there three rows which clean the sended email - and I believe that these linese cause the problem. I commented these (the following) out, turned the sync off on the bridge side in mambo, and now could read the body of the confirmation mail and see the link to click and could change the default language. So, now, happy again.
Starting around row 624 find these and get rid of:
//THis is an email, after all, so let's make sure entities and special characters are text, not HTML
// $message = trim($message);
// $message = html_entity_decode($message);
// $message = un_htmlspecialchars($message);
// $hotmail_fix = false;
// return true;
Could you Kindred kindly check if this is ok to get rid of these lines from the point of functionality?. I am so novice when comes to the code stuff.
Kindred:
hmmm.... that is a security thing, in that it cleans html out of the message.
I'm not a proficient enough coder to tell you what security might be affected by removing those checks.
Navigation
[0] Message Index
[*] Previous page
Go to full version