mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-30 00:55:37 +02:00
Fix SQLite query where underscore was an unintended wildcard
This commit is contained in:
parent
6753fd6eca
commit
3ebf583de9
@ -2266,7 +2266,7 @@ userexist (char *cname, int isnew)
|
|||||||
if (isnew && (strlen(cname) >= globalconfig.max_newnick_len))
|
if (isnew && (strlen(cname) >= globalconfig.max_newnick_len))
|
||||||
strcat(tmpbuf, "%");
|
strcat(tmpbuf, "%");
|
||||||
|
|
||||||
qbuf = sqlite3_mprintf("select * from dglusers where username like '%q' limit 1", tmpbuf);
|
qbuf = sqlite3_mprintf("select * from dglusers where username = '%q' collate nocase limit 1", tmpbuf);
|
||||||
|
|
||||||
ret = sqlite3_open(globalconfig.passwd, &db);
|
ret = sqlite3_open(globalconfig.passwd, &db);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user