From: Alexandre Emsenhuber Date: Mon, 6 Oct 2008 18:56:14 +0000 (+0000) Subject: Fix XHTML error (url not escaped) X-Git-Tag: 1.31.0-rc.0~44876 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=5c8a1938da428393d7897c7e17fb024299b77875;p=lhc%2Fweb%2Fwiklou.git Fix XHTML error (url not escaped) --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 6610738f6f..4c527c8115 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1873,8 +1873,8 @@ function wfGetSiteNotice() { wfProfileIn( $fname ); $siteNotice = ''; $loggedIn = false; - $spTitle = SpecialPage::getTitleFor('DismissNotice'); - $spUrl = $spTitle->getFullURL( array( 'returnto' => $wgTitle->getPrefixedURL() ) ); + $spTitle = SpecialPage::getTitleFor( 'DismissNotice' ); + $spUrl = $spTitle->escapeFullURL( array( 'returnto' => $wgTitle->getPrefixedURL() ) ); if( $wgUser instanceOf User && $wgUser->isLoggedIn() ) { $loggedIn = true;