mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
parser: Don't crash on links to invalid titles
Bug: T251045 Change-Id: I1a7b8b9b34d38ec4e3edc12687bdf99bb0e61bd8
This commit is contained in:
parent
0c098b1fab
commit
4ad9aa8449
|
@ -502,6 +502,9 @@ function findSignature( timestampNode, until ) {
|
|||
return false;
|
||||
}
|
||||
mwTitle = mw.Title.newFromText( title );
|
||||
if ( !mwTitle ) {
|
||||
return false;
|
||||
}
|
||||
if (
|
||||
mwTitle.getNamespaceId() === mw.config.get( 'wgNamespaceIds' ).user ||
|
||||
mwTitle.getNamespaceId() === mw.config.get( 'wgNamespaceIds' ).user_talk
|
||||
|
|
Loading…
Reference in a new issue