[phpMP-CVS] CVS: phpMP/includes session.php,1.8,1.9
Status: Pre-Alpha
Brought to you by:
heimidal
From: Brian R. <hei...@us...> - 2003-05-12 05:07:00
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv15846/includes Modified Files: session.php Log Message: Fixed a small bug which kept usernames from containing non-alphanumeric characters. Fixed without Changelog entry. Index: session.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/session.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** session.php 9 May 2003 08:07:39 -0000 1.8 --- session.php 12 May 2003 05:06:56 -0000 1.9 *************** *** 59,63 **** $sql = "SELECT * FROM " . DB_USERS_TABLE . " ! WHERE user_name='" . $username . "' AND user_passwd='" . $passwd_enc . "'"; --- 59,63 ---- $sql = "SELECT * FROM " . DB_USERS_TABLE . " ! WHERE user_name='" . addslashes($username) . "' AND user_passwd='" . $passwd_enc . "'"; |