* Fixed magic quotes in $_REQUEST, in Setup.php
[lhc/web/wiklou.git] / includes / EditPage.php
index 288cb25..bc59468 100644 (file)
@@ -129,8 +129,7 @@ class EditPage {
                                # append them and the string comparison fails
                                if ( ( "" == $wpTextbox1 ) ||
                                  ( wfMsg( "newarticletext" ) == rtrim( preg_replace("/\r/","",$wpTextbox1) ) ) ) {
-                                       $wgOut->redirect(  wfLocalUrl(
-                                         $this->mTitle->getPrefixedURL() ) );
+                                       $wgOut->redirect( $this->mTitle->getURL() );
                                        return;
                                }
                                $this->mArticle->insertNewArticle( $wpTextbox1, $wpSummary, $wpMinoredit, $wpWatchthis );
@@ -228,7 +227,7 @@ class EditPage {
 
                $q = "action=submit";
                if ( "no" == $redirect ) { $q .= "&redirect=no"; }
-               $action = wfEscapeHTML( wfLocalUrl( $this->mTitle->getPrefixedURL(), $q ) );
+               $action = $this->mTitle->getURL( $q, true );
 
                $summary = wfMsg( "summary" );
                $subject = wfMsg("subject");