Only match article path until first '?' when parsing links

Bug: T324028
Change-Id: I7aca1a8f20695b9ecd3f63f2d0a3f5684616655e
This commit is contained in:
Bartosz Dziewoński 2022-11-29 18:15:16 +01:00
parent ea54a8facc
commit be012ced04

View file

@ -494,7 +494,7 @@ class CommentUtils {
$articlePathRegexp = '/' . str_replace(
preg_quote( '$1', '/' ),
'(.*)',
'([^?]*)',
preg_quote( $config->get( 'ArticlePath' ), '/' )
) . '/';
$matches = null;