Non existent user subpages should return 404
Bug: 46491 Change-Id: I900f1542b077b569ed64306ecf9f965ddabe59f8
This commit is contained in:
parent
331bcf6ac9
commit
bbe0dfb865
1 changed files with 3 additions and 2 deletions
|
|
@ -1092,6 +1092,7 @@ class Article implements Page {
|
|||
public function showMissingArticle() {
|
||||
global $wgSend404Code;
|
||||
$outputPage = $this->getContext()->getOutput();
|
||||
// Whether the page is a root user page of an existing user (but not a subpage)
|
||||
$validUserPage = false;
|
||||
|
||||
# Show info in user (talk) namespace. Does the user exist? Is he blocked?
|
||||
|
|
@ -1119,9 +1120,9 @@ class Article implements Page {
|
|||
)
|
||||
)
|
||||
);
|
||||
$validUserPage = true;
|
||||
$validUserPage = !$this->getTitle()->isSubpage();
|
||||
} else {
|
||||
$validUserPage = true;
|
||||
$validUserPage = !$this->getTitle()->isSubpage();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue