RE: [PHP] Follow-up to Hacker problem
| From: | John W. Holmes | Date: | Thu, 13 Mar 2003 01:26:06 +0000 |
| Subject: | RE: [PHP] Follow-up to Hacker problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-139423@lists.php.net to get a copy of this message | ||
> Your tips were nice, guys, thanks a lot. I tried a few things
and i
> decided to go for making all the checks server side, cant go safer
than
> that.
> Just have a doubt on one of the checks, at least so far.
> I have a check for long words, because the shoutbox is in a
IFRAME,
> so if
> someone posted a long word, the infamous horizontal scroll bar would
> appear. How can i check for long words on a string and remove them
before
> they get written on the DB?
We answered this yesterday, weren't you paying attention? Either use
wordwrap() or one of the functions Ernest (I think it was him) or I
posted...
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/