mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-19 22:48:01 +02:00
2021-04-19 Fred Gleason <fredg@paravelsystems.com>
* Escaped all SQL identifiers in 'rdlogin/'. * Replaced " with ' delimiters in all SQL literal strings in 'rdlogin/'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
c45cc83e15
commit
01c15d8dbd
@ -21511,3 +21511,7 @@
|
||||
* Escaped all SQL identifiers in 'rdlogedit/'.
|
||||
* Replaced " with ' delimiters in all SQL literal strings in
|
||||
'rdlogedit/'.
|
||||
2021-04-19 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Escaped all SQL identifiers in 'rdlogin/'.
|
||||
* Replaced " with ' delimiters in all SQL literal strings in
|
||||
'rdlogin/'.
|
||||
|
@ -91,10 +91,10 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
|
||||
login_username_box->setModel(login_username_model);
|
||||
QFontMetrics fm(font());
|
||||
sql=QString("select ")+
|
||||
"LOGIN_NAME "+ // 00
|
||||
"from USERS where "+
|
||||
"ADMIN_CONFIG_PRIV='N'"+
|
||||
"order by LOGIN_NAME";
|
||||
"`LOGIN_NAME` "+ // 00
|
||||
"from `USERS` where "+
|
||||
"`ADMIN_CONFIG_PRIV`='N'"+
|
||||
"order by `LOGIN_NAME`";
|
||||
q=new RDSqlQuery(sql);
|
||||
while(q->next()) {
|
||||
if((20+fm.width(q->value(0).toString()))>login_user_width) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user