Annoyingly long links being pasted (again)

includes/bbcode.php line 625



    // matches an email@domain type address at the start of a line, or after a space.
    // Note: Only the followed chars are valid; alphanums, "-", "_" and or ".".
    $ret = preg_replace("#([
 ])([a-z0-9\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>", $ret);

new line here


    // cut link text to hostname
    $ret = preg_replace( "#(<a hr.+ank\">)[http|ftp]+[s]?://([a-z0-9\.]+)/.+#i", '\1\2</a>', $ret );


    // Remove our padding..
    $ret = substr($ret, 1);

    return($ret);
}

isn’t very pretty or robust but it retroactively fixes the width problem.