Commit Graph

19 Commits

Author SHA1 Message Date
Tech-Maou
ce700643f5
Update for strict comparison with ===
problem: loose comparison with == -> Null = "0"
solved: strict comparison with === -> Null = false
new session with $v1 = 0 and $v2 = 0 did lead to true answer with actually no answer given (Null -> "0")
 0 + 0 = 0 -> true
ref: https://www.php.net/manual/en/types.comparisons.php
2021-03-31 17:18:39 +02:00
Gordon Anderson
82d37954bb FIX: Change namespace as requested 2018-04-20 14:19:30 +07:00
Gordon Anderson
c8084968c5 FIX: Fixes suggested in PR, mostly minor 2018-04-20 11:13:48 +07:00
Gordon Anderson
7398064cd5 FIX: Config and session 2018-04-20 10:18:25 +07:00
Gordon Anderson
bd4defe793 MINOR: IDE whitespace tidy 2018-04-19 22:07:24 +07:00
Gordon Anderson
af1693b7ea FIX: Missing use statement 2018-04-19 22:06:41 +07:00
Gordon Anderson
0c96d86131 UPGRADE: Namespace fixes after running upgrade tool 2018-04-19 20:26:38 +07:00
helpfulrobot
82a51add39 Converted to PSR-2 2015-11-21 19:27:13 +13:00
Jarkko Linnanvirta
644360c9c0 Update MathSpamProtectorField.php 2015-08-31 17:09:40 +03:00
Jarkko Linnanvirta
a1b85b0d97 Create allow_numeric_answer option
This option allows you to stop accepting numeric answers as they do not always prevent spam. By default, numeric answers are accepted, so this commit does not make any unintended changes to the behaviour of this field.
2015-08-26 21:58:40 +03:00
Will Rossiter
ae63604f08 Allow question prefix to be replaced 2014-11-05 15:52:42 +13:00
John Milmine
88b0f31f1a fix to mathspamprotector field so that the type returns the same format as other text fields, e.g EmailField 2014-06-11 11:54:29 +12:00
Damian Mooyman
d8ce0be778 API Updated to support SpamProtector API tweak 2014-02-19 10:13:39 +13:00
Will Rossiter
2d29d309f6 Cleanup to work with latest master spam, fix validation 2014-02-10 21:25:27 +13:00
RuthAdele
db7ec20399 Add strtolower to allow answers with Capital letter 2013-09-24 18:51:31 +09:30
martimiz
40164fd79d MINOR: removed argument from self::is_enabled() in MathSpamProtectorField ln22
It was wrongly pasted there in an earlier commit…
2012-07-10 15:10:36 +02:00
martimiz
d016d32dcc MINOR: fixed deprecated code in MathSpamProtectorField
Fixed some deprecated code following instructions in the deprecation
notices.
2012-07-10 14:23:18 +02:00
Marijn Kampf
0d88c9da19 Inserted missing validator notify callback object 2011-06-09 02:35:23 -07:00
Will Rossiter
042fc8edf1 Initial commit of MathSpamProtection module from hackfest 2010-12-13 13:30:04 +13:00