Quote:
Originally Posted by Charles_1
I have similar issue on vBulletin v3.8.2 and AME v2.5.5.
|
The example above isn't related to this. Those examples were working as intended as embedding was disabled (in fact, neither of those videos are valid links anymore anyway)
However this I just confirmed as indeed a bug. The bug is that if no protocol is included (i.e. no http://) then the link will be malformed. I have included the fix in the next release but as I am heading out on Holiday Saturday, Ill post it here for those that want to apply the fix sooner.
in includes/ame_bbcode.php on or around line 492 find
PHP Code:
$url = str_replace(array("[url]", "[URL]", "[/url]", "[/URL]"), array("","","",""), $param1);
and directly below it, add:
PHP Code:
if (!preg_match('#^[a-z0-9]+(?<!about|javascript|vbscript|data):#si', $url))
{
$url = "http://$url";
}
HTHs