Smilies coming broken in notification email Smilies coming broken in notification email
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Smilies coming broken in notification email

Started by Abbas Ali, January 31, 2006, 08:52:26 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Abbas Ali

The smilies were coming broken in comment notification emails. Fixed it by modifying db_input.php

Fix committed to devel and stable. Please confirm.

For those who want to fix manually.....

Edit db_input.php

Replace (around line 152)


$mail_body = "<p>" . bb_decode(process_smilies($msg_body)) . "</p>\n\r ".$lang_db_input_php['email_comment_body'] . " " . $CONFIG['ecards_more_pic_target'].(substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/').$redirect;


with


$mail_body = "<p>" . bb_decode(process_smilies($msg_body, $CONFIG['ecards_more_pic_target'])) . "</p>\n\r ".$lang_db_input_php['email_comment_body'] . " " . $CONFIG['ecards_more_pic_target'].(substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/').$redirect;



Abbas
Chief Geek at Ranium Systems

Nibbler

That fixed it for anonymous users only, for logged in users a similar line further down required modification also.

ref: http://forum.coppermine-gallery.net/index.php?topic=28072.0

Marking as fixed.

Abbas Ali

Oops.....i missed that. Anyways thanks Nibbler.
Chief Geek at Ranium Systems