(If this message is not displayed correctly in the mailing thread, I'm
sorry. I did not receive any reply, nor a digest, so I had to reply
> * why don't you just save the exploded list instead of the string?
> you can implode it back only for displaying :)
Good point. Changed.
> * I think stripslashes($_POST['your-field']) is needed for words
> containing apostrophees
Yeah, I changed it.
> * also I'm not sure but I believe \n\r are already normalized to
> \n (but I could be wrong)
> * \n\n should be normalized to \n otherwise you'll get the empty
> string which should match anything => antispam would always fail
\r\n won't be normalized. Windows machines are still sending \r\n, most
Unices \n and Macintoshs \r (whether that's only a pre-Darwing attitude
-- I dunno. I neither have a Mac OS 9 nor a OS X system).
So all \r will be replaced by \n, and \n\n by \n. The last replacement
is done by array_filter with callback function at the bottom, 'cause a
simple str_replace"\n\n", "\n", ...) did not work. Life is hell...
SVN214 contains the most current qspam plugin.
Get latest updates about Open Source Projects, Conferences and News.