File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,10 @@ when not defined(skipStopForumSpamCheck):
255
255
resp = client.get(" https://api.stopforumspam.org/api?emailhash=" & c.email.getMd5 & " &json" )
256
256
if resp.code == Http200:
257
257
let jresp = resp.body.parseJson
258
- if jresp[" success" ].num == 1 and jresp[" emailhash" ].hasKey(" confidence" ) and jresp[" emailhash" ][" confidence" ].str.parseFloat > 0.0 :
258
+ if jresp[" success" ].num == 1 and jresp[" emailhash" ].hasKey(" confidence" ) and (
259
+ (jresp[" emailhash" ][" confidence" ].kind == JString and jresp[" emailhash" ][" confidence" ].str.parseFloat > 0.0 ) or
260
+ (jresp[" emailhash" ][" confidence" ].kind == JInt and jresp[" emailhash" ][" confidence" ].num > 0.0 ) or
261
+ (jresp[" emailhash" ][" confidence" ].kind == JFloat and jresp[" emailhash" ][" confidence" ].fnum > 0.0 )):
259
262
exec(
260
263
db,
261
264
sql" update person set status = ? where name = ?;" ,
You can’t perform that action at this time.
0 commit comments