1

(0 replies, posted in Discussions)

Before:

//
// Convert \r\n and \r to \n
//
function pun_linebreaks($str)
{
    return str_replace("\r", "\n", str_replace("\r\n", "\n", $str));
}

After:

//
// Convert \r\n and \r to \n
//
function pun_linebreaks($str)
{
    return str_replace(array("\r\n", "\r"), "\n", $str);
}

Hope this helps. tongue

Edit: PHP 4.0.5 required to do the array(), so it might be a problem. hmm

I've been recently getting about 2-3 registrations on my forums by bots. Is there anyway I can stop this? I have the "Verify E-mail to complete Registration" enabled. I was hoping that maybe there was a feature in PunBB (or a mod) which allows me (the administrator) to verify all registrars.