note 54128 added to function.eregi
| From: | Zach at fsw dot cn | Date: | Fri, 24 Jun 2005 13:41:25 +0000 |
| Subject: | note 54128 added to function.eregi | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90894@lists.php.net to get a copy of this message | ||
To liam at sunwise dot co dot uk (note below)
eregi is a great tool tool for comparisons, to check to see if a string contains another string, etc
What you are trying to do can be done much better with many other commands like htmlentitities which
will just convert all problem causing characters to their printable equal.
Or even more simple - $string=str_replace('<','< ',$string); - which is
gonna break everything that someone might try
Or look in strip_tags - it in itself can be defeated, but there is many user notes that are probably
much closer to what you are trying to do.
----
Manual Page -- http://www.php.net/manual/en/function.eregi.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54128
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54128&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54128&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54128&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54128&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54128&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54128&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54128&report=yes
Search -- http://master.php.net/manage/user-notes.php