SpecialRandomInCategory: Don't expose edittoken in URL

Bug: T309907
Change-Id: I53e58c16cd1292d78b5775358fc180901f4ce203
This commit is contained in:
Ammarpad 2022-06-04 21:20:48 +01:00
parent cd328d48a0
commit 2f8b7ae673

View file

@ -154,7 +154,7 @@ class SpecialRandomInCategory extends FormSpecialPage {
return Status::newFatal( $msg );
}
$query = $this->getRequest()->getValues();
$query = $this->getRequest()->getQueryValues();
unset( $query['title'] );
$this->getOutput()->redirect( $title->getFullURL( $query ) );
}