Merge "Check for empty strings in markasread query param"

This commit is contained in:
jenkins-bot 2021-09-21 08:11:08 +00:00 committed by Gerrit Code Review
commit 9ccdaa7be0

View file

@ -857,7 +857,7 @@ class EchoHooks implements RecentChange_saveHook {
}
// Attempt to mark as read the event IDs in the ?markasread= parameter, if present
$markAsReadIds = explode( '|', $request->getText( 'markasread' ) );
$markAsReadIds = array_filter( explode( '|', $request->getText( 'markasread' ) ) );
$markAsReadWiki = $request->getText( 'markasreadwiki', wfWikiID() );
$markAsReadLocal = !$wgEchoCrossWikiNotifications || $markAsReadWiki === wfWikiID();
if ( $markAsReadIds ) {