Message with Emote-Icons doesn't work
|Reported by:||Hosteurope||Owned by:|
|Priority:||1 - Highest||Milestone:||0.2-stable|
If you send a HTML Message and include a Emote-Icon the send process will endless-loop.
This only happens if you INSTALL_PATH is longer than 42 characters.
This happens because there's a bug in the rcmail_attach_emoteicons function in program/steps/mail/sendmail.inc so there's an endless-lopp
to get the last replaced position in the while-loop you have to add the strlen of the INSTALLATION_PATH constant. If you don't do this you will start right in the middle of the new src="" string, and found the $searchstr again, in front of you search-cursor.
just replace the
$last_img_pos = $pos2;
$last_img_pos = $pos2+strlen( INSTALL_PATH. '/' );
and everything works as it should :)