From: Rob Church Date: Mon, 20 Aug 2007 13:13:07 +0000 (+0000) Subject: (bug 11001) Submit Special:Newpages as a GET, rather than a POST request X-Git-Tag: 1.31.0-rc.0~51724 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=75ad659b07cd9af001982134245c8783da57e86b;p=lhc%2Fweb%2Fwiklou.git (bug 11001) Submit Special:Newpages as a GET, rather than a POST request --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 012114a7c0..9611a2d1eb 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -179,6 +179,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN information * Confirmation is now required when deleting old versions of files * (bug 7535) Users can now enter comments when deleting old versions of files +* (bug 11001) Submit Special:Newpages as a GET, rather than a POST request == Bugfixes since 1.10 == diff --git a/includes/SpecialNewpages.php b/includes/SpecialNewpages.php index 02ba88500d..1e5641f23c 100644 --- a/includes/SpecialNewpages.php +++ b/includes/SpecialNewpages.php @@ -138,8 +138,10 @@ class NewPagesPage extends QueryPage { * @return string */ function getPageHeader() { + global $wgScript; $self = SpecialPage::getTitleFor( $this->getName() ); - $form = Xml::openElement( 'form', array( 'method' => 'post', 'action' => $self->getLocalUrl() ) ); + $form = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ); + $form .= Xml::hidden( 'title', $self->getPrefixedUrl() ); # Namespace selector $form .= ''; $form .= '';
' . Xml::label( wfMsg( 'namespace' ), 'namespace' ) . '' . Xml::namespaceSelector( $this->namespace, 'all' ) . '