aboutsummaryrefslogtreecommitdiffstats
path: root/autoload.php
diff options
context:
space:
mode:
authorbpirkle <bpirkle@wikimedia.org>2024-04-02 22:05:07 -0500
committerbpirkle <bpirkle@wikimedia.org>2024-04-24 14:27:06 -0500
commit1e4b86b183dc778f225d48522effb0916effbbb5 (patch)
tree7678cb1865973c0606c45475577c8126e950f58b /autoload.php
parent3ade92b9ff44da6a9b37cabb74232f7430ea0af5 (diff)
downloadmediawikicore-1e4b86b183dc778f225d48522effb0916effbbb5.tar.gz
mediawikicore-1e4b86b183dc778f225d48522effb0916effbbb5.zip
Disallow optional or empty path parameters
Do not allow optional path parameters or empty path segments within the path. Handlers may still consider a path parameter to be non-required. Normally this is when a handler services multiple routes, and not all routes supply all parameters. Bug: T359652 Change-Id: I4f82ee2b6ec5b631249d26496688e5f42696c1d0
Diffstat (limited to 'autoload.php')
-rw-r--r--autoload.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/autoload.php b/autoload.php
index 1856657512a8..6c679ae070c1 100644
--- a/autoload.php
+++ b/autoload.php
@@ -1981,6 +1981,7 @@ $wgAutoloadLocalClasses = [
'MediaWiki\\Rest\\LocalizedHttpException' => __DIR__ . '/includes/Rest/LocalizedHttpException.php',
'MediaWiki\\Rest\\PathTemplateMatcher\\PathConflict' => __DIR__ . '/includes/Rest/PathTemplateMatcher/PathConflict.php',
'MediaWiki\\Rest\\PathTemplateMatcher\\PathMatcher' => __DIR__ . '/includes/Rest/PathTemplateMatcher/PathMatcher.php',
+ 'MediaWiki\\Rest\\PathTemplateMatcher\\PathSegmentException' => __DIR__ . '/includes/Rest/PathTemplateMatcher/PathSegmentException.php',
'MediaWiki\\Rest\\RedirectException' => __DIR__ . '/includes/Rest/RedirectException.php',
'MediaWiki\\Rest\\Reporter\\ErrorReporter' => __DIR__ . '/includes/Rest/Reporter/ErrorReporter.php',
'MediaWiki\\Rest\\Reporter\\MWErrorReporter' => __DIR__ . '/includes/Rest/Reporter/MWErrorReporter.php',