mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-25 06:26:03 +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 |
||
---|---|---|
.. | ||
AbuseFilterCachingParser.php | ||
AbuseFilterParser.php | ||
AbuseFilterTokenizer.php | ||
AFPData.php | ||
AFPException.php | ||
AFPParserState.php | ||
AFPToken.php | ||
AFPTreeNode.php | ||
AFPTreeParser.php | ||
AFPUserVisibleException.php |