mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-28 16:00:28 +00:00
963221ad6d
Ensure that the variable isn't set before marking it as DUNDEFINED: that's only for when we cannot use a default, but if the variable is set we already have one. Most notably, this fixes conditionals handling: right now, if you have a conditional with an assignment in both branches, the variable will be undefined. That's obviously wrong, so it's fixed in this patch. Plus: catch only AFPExceptions in a test to avoid unintentionally catching the assert exception; simplify some assignments using wfSetVar. Depends-On: I446a307e5395ea8cc8ec5ca5d5390b074bea2f24 Change-Id: I8e7f7710b8cb37ada8531b631456a3ce7b27ee45 |
||
---|---|---|
.. | ||
AbuseFilterConsequencesTest.php | ||
AbuseFilterParserTest.php | ||
AbuseFilterParserTestCase.php | ||
AbuseFilterSaveTest.php | ||
AbuseFilterTest.php | ||
AbuseFilterTokenizerTest.php | ||
AFPDataTest.php |