mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-25 06:07:22 +01:00
[MIRROR] Bugfix for the Bugfix (#6793)
Co-authored-by: Casey <a.roaming.shadow@gmail.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
co-authored by
Casey
CHOMPStation2
parent
3e1cd79788
commit
b7094b7a39
@@ -50,7 +50,11 @@
|
||||
|
||||
if(computer_id)
|
||||
failedcid = 0
|
||||
cidquery = " OR computerid = '[sanitizeSQL(computer_id)]' "
|
||||
if(isnum(text2num(computer_id)))
|
||||
cidquery = " OR computerid = '[computer_id]' "
|
||||
else
|
||||
log_misc("Key [ckeytext] cid not checked. Non-Numeric: [computer_id]")
|
||||
failedcid = 1
|
||||
|
||||
var/DBQuery/query = SSdbcore.NewQuery("SELECT ckey, ip, computerid, a_ckey, reason, expiration_time, duration, bantime, bantype FROM erro_ban WHERE (ckey = :t_ckey [ipquery] [cidquery]) AND (bantype = 'PERMABAN' OR (bantype = 'TEMPBAN' AND expiration_time > Now())) AND isnull(unbanned)", list("t_ckey" = ckeytext)) //CHOMPEdit TGSQL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user