Posted by Chris Shiflett on 11/10/05 17:57
M wrote:
> $clean['pass'] = md5((ini_get('magic_quotes_gpc') ?
> stripslashes($_POST['pass']) : $_POST['pass']));
>
> or users with quotes in their password won't be able to log in.
This is best handled in one place, so that it's easier to maintain and
less likely to be overlooked. In the examples provided, $_POST['pass']
is the password provided by the user.
Chris
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/
Navigation:
[Reply to this message]
|