MyBB Community Forums

Full Version: problems with smilies in url
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
since the upgrade from 1.6.3 to 1.6.4 smilies, embedded in a url, don't work anymore. example: Huh

There is already a ticket existing.

Any idea to solve this problem? In our forum this is used very often.... Confused



Edit:

change in class_parser.php the following lines
preg_match_all("#\[(url(=[^\]]*)?\](.*?)\[\/url\]|quote=([^\]]*)?\])#i", $message, $bad_matches, PREG_PATTERN_ORDER);
$message = preg_replace("#\[(url(=[^\]]*)?\](.*?)\[\/url\]|quote=([^\]]*)?\])#si", "<mybb-bad-sm>", $message);
into
preg_match_all("#\[(url(=[^\]]*])?\](.*?)\[\/url\]|quote=([^\]]*)?\])#i", $message, $bad_matches, PREG_PATTERN_ORDER);
$message = preg_replace("#\[(url(=[^\]]*])?\](.*?)\[\/url\]|quote=([^\]]*)?\])#si", "<mybb-bad-sm>", $message);
and it works...

Hope this change is ok and will cause any other error
thank you so much
i had a same problem using image urls for example

[url=somthing][img]somthing[/img][url]