Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30360
Modified Files:
accounts.cpp
Log Message:
Fixed an issue with account names being saved incorrectly.
Index: accounts.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/accounts.cpp,v
retrieving revision 1.101
retrieving revision 1.102
diff -C2 -d -r1.101 -r1.102
*** accounts.cpp 31 Aug 2004 01:09:51 -0000 1.101
--- accounts.cpp 31 Aug 2004 13:47:36 -0000 1.102
***************
*** 367,374 ****
QString sql( "REPLACE INTO accounts VALUES( '%1', '%2', %3, '%4', %5, %6, '%7' );" );
! sql = sql.arg( account->login_.lower() )
! .arg( account->password_ )
.arg( account->flags_ )
! .arg( account->aclName_ )
.arg( !account->lastLogin_.isNull() ? account->lastLogin_.toTime_t() : 0 )
.arg( !account->blockUntil.isNull() ? account->blockUntil.toTime_t() : 0 )
--- 367,374 ----
QString sql( "REPLACE INTO accounts VALUES( '%1', '%2', %3, '%4', %5, %6, '%7' );" );
! sql = sql.arg( PersistentBroker::instance()->quoteString(account->login_) )
! .arg( PersistentBroker::instance()->quoteString(account->password_) )
.arg( account->flags_ )
! .arg( PersistentBroker::instance()->quoteString(account->aclName_) )
.arg( !account->lastLogin_.isNull() ? account->lastLogin_.toTime_t() : 0 )
.arg( !account->blockUntil.isNull() ? account->blockUntil.toTime_t() : 0 )
|