mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-10 16:43:35 +02:00
2021-04-18 Fred Gleason <fredg@paravelsystems.com>
* Escaped all SQL identifiers in 'rdadmin/'. * Replaced " with ' delimiters in all SQL literal strings in 'rdadmin/'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -636,9 +636,9 @@ void EditStation::okData()
|
||||
RDSqlQuery *q;
|
||||
|
||||
if(!station_maint_box->isChecked()) {
|
||||
sql=QString("select NAME from STATIONS where ")+
|
||||
"(NAME!=\""+RDEscapeString(station_station->name())+"\")&&"+
|
||||
"(SYSTEM_MAINT=\"Y\")";
|
||||
sql=QString("select `NAME` from `STATIONS` where ")+
|
||||
"(`NAME`!='"+RDEscapeString(station_station->name())+"')&&"+
|
||||
"(`SYSTEM_MAINT`='Y')";
|
||||
q=new RDSqlQuery(sql);
|
||||
if(!q->first()) {
|
||||
QMessageBox::warning(this,tr("System Maintenance"),
|
||||
|
Reference in New Issue
Block a user