Commit graph

9 commits

Author SHA1 Message Date
Umherirrender 5404ab51f8 Use namespaced classes
Changes to the use statements done automatically via script

Change-Id: Ie45f3705f5f2f9992ff93a77a3f0a7cbb8a8d3cd
2024-10-20 11:32:26 +02:00
Bartosz Dziewoński 6e2ce16be0 Fix Phan suppression
The SecurityCheck-XSS violation occurred because, in renderFeed(),
the $renderedFeed variable contains both wikitext (tainted) and
HTML (safe) at different points in the function, and Phan is unable
to disentangle that. Splitting it into two variables allows Phan to
validate the rest of the code just fine.

Change-Id: I4da446b869349f06fc0fc40816d44cee390c49a6
2024-09-19 07:45:02 +02:00
Umherirrender 2cc29f25a0 Add missing documentation to class properties
Add doc-typehints to class properties found by the PropertyDocumentation
sniff to improve the documentation and to remove the exclusion of the
sniff.
The activated sniff avoids that new code is missing doc-typehints or
real-typehints.

Adding a @var type to RSSData->items triggers a SecurityCheck-XSS issue by phan, but all is dealing with wikitext when building the items, so that looks like a false positive

Change-Id: I4f1d17372d62f02fe7447f5bf5e75b9471d7a338
2024-09-14 07:41:14 +00:00
Umherirrender 7b4ff5e4cb Use namespaced Parser class
Change-Id: Ie4e85e4a8cd967fe3293555d2de92e9e5a79d0c8
2024-06-10 20:17:47 +02:00
Umherirrender 29503101e5 build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0
Change-Id: I14948431331e02e0659e80b159f4b2e0ed0469ef
2024-03-11 22:44:41 +01:00
Umherirrender a7c9a664b8 Use namespaced classes
Done automatically via script

Change-Id: I960cc93c19639202cdb63c5b0b00bfc468abb37e
2024-01-05 21:23:30 +01:00
Umherirrender 4f661bfde7 Use HookHandlers for core hook
Remove optional return value from hook handler

Bug: T346497
Change-Id: I8c38733c5edebf7b3a49edd33474b7c1aa755659
2023-09-17 16:21:43 +02:00
C. Scott Ananian 3e5dd2490c Replace Parser::getFunctionLang() with ::getTargetLanguage()
Parser::getFunctionLang() is being deprecated.  These two functions
have been identical since 7df3473cfea59df53debb7a9eefffed8a7f20fb3
in MW 1.19 (2012) and this extension already requires MW >= 1.38.

Bug: T318860
Change-Id: If5fa696e27e84a3aa1343551d7482c933da0a9b6
2022-09-28 15:55:49 -04:00
Reedy 80d1b67f19 Namespace extension
Change-Id: I0894842014e1a73f419c90cf11c8334ac102242a
2022-06-25 20:02:38 +00:00
Renamed from includes/RSSHooks.php (Browse further)