Fix unquoted string when calling unl_delete.

This commit is contained in:
Stefan Thomas
2012-11-08 16:23:53 -08:00
parent bf63f1f652
commit fdb0c4cdfc

View File

@@ -1422,7 +1422,7 @@ void UniqueNodeList::nodeRemovePublic(const RippleAddress& naNodePublic)
Database* db=theApp->getWalletDB()->getDB();
ScopedLock sl(theApp->getWalletDB()->getDBLock());
db->executeSQL(str(boost::format("DELETE FROM SeedNodes WHERE PublicKey=%s") % naNodePublic.humanNodePublic()));
db->executeSQL(str(boost::format("DELETE FROM SeedNodes WHERE PublicKey=%s") % sqlEscape(naNodePublic.humanNodePublic())));
}
// YYY Only dirty on successful delete.