Changeset 1918


Ignore:
Timestamp:
05/12/2011 11:45:36 AM (13 months ago)
Author:
Xiping.Wang
Message:

[trunk]Upgrade to MediaWiki? 1.16.5

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:externals
      •  

        old new  
        1 w/bin http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_4/phase3/bin 
        2 w/cache http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_4/phase3/cache 
        3 w/config http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_4/phase3/config 
        4 w/docs http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_4/phase3/docs 
        5 w/languages http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_4/phase3/languages 
        6 w/maintenance http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_4/phase3/maintenance 
        7 w/math http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_4/phase3/math 
        8 w/serialized http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_4/phase3/serialized 
        9 w/extensions/Interwiki http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_4/extensions/Interwiki 
         1w/bin http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_5/phase3/bin 
         2w/cache http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_5/phase3/cache 
         3w/config http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_5/phase3/config 
         4w/docs http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_5/phase3/docs 
         5w/languages http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_5/phase3/languages 
         6w/maintenance http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_5/phase3/maintenance 
         7w/math http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_5/phase3/math 
         8w/serialized http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_5/phase3/serialized 
         9w/extensions/Interwiki http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_16_5/extensions/Interwiki 
  • trunk/w/INSTALL

    r1484 r1918  
    77 
    88Required software: 
    9 * Web server with PHP 5.x or higher. 
     9* Web server with PHP 5.1 or higher (this will be the last release to support 5.1.x) 
    1010* A MySQL server, 4.0.14 or higher OR a Postgres server, 8.1 or higher 
    1111 
  • trunk/w/RELEASE-NOTES

    r1915 r1918  
    11= MediaWiki release notes = 
    22 
    3 == MediaWiki 1.16.4 == 
    4  
    5 2011-04-14 
    6  
    7 This is a security and maintenance release of the MediaWiki 1.16 branch. 
     3== MediaWiki 1.16.5 == 
     4 
     52011-05-05 
     6 
     7This is a security release of the MediaWiki 1.16 branch. 
    88 
    99=== Summary of selected changes in 1.16 === 
     
    4444you have the DBA extension for PHP installed, this will improve performance  
    4545further. 
     46 
     47== Changes since 1.16.4 
     48 
     49* (bug 28534) Fixed XSS vulnerability for IE 6 clients. This is the third  
     50  attempt at fixing bug 28235. 
     51* (bug 28639) Fixed potential privilege escalation when $wgBlockDisablesLogin 
     52  is enabled. 
    4653 
    4754== Changes since 1.16.3 == 
  • trunk/w/img_auth.php

    r1915 r1918  
    4040// Check for bug 28235: QUERY_STRING overriding the correct extension 
    4141if ( isset( $_SERVER['QUERY_STRING'] ) 
    42         && preg_match( '/\.[a-z0-9]{1,4}(#|\?|$)/i', $_SERVER['QUERY_STRING'] ) ) 
     42        && preg_match( '/\.[^\\/:*?"<>|%]+(#|\?|$)/i', $_SERVER['QUERY_STRING'] ) ) 
    4343{ 
    4444        wfForbidden( 'img-auth-accessdenied', 'img-auth-bad-query-string' ); 
  • trunk/w/includes/DefaultSettings.php

    r1915 r1918  
    3434 
    3535/** MediaWiki version number */ 
    36 $wgVersion = '1.16.4'; 
     36$wgVersion = '1.16.5'; 
    3737 
    3838/** Name of the site. It must be changed in LocalSettings.php */ 
  • trunk/w/includes/User.php

    r1484 r1918  
    898898 
    899899                $passwordCorrect = FALSE; 
    900                 $this->mId = $sId; 
    901                 if ( !$this->loadFromId() ) { 
    902                         # Not a valid ID, loadFromId has switched the object to anon for us 
     900                $proposedUser = User::newFromId( $sId ); 
     901                if ( !$proposedUser->isLoggedIn() ) { 
     902                        # Not a valid ID 
     903                        $this->loadDefaults(); 
    903904                        return false; 
    904905                } 
    905906 
    906907                global $wgBlockDisablesLogin; 
    907                 if( $wgBlockDisablesLogin && $this->isBlocked() ) { 
     908                if( $wgBlockDisablesLogin && $proposedUser->isBlocked() ) { 
    908909                        # User blocked and we've disabled blocked user logins 
    909910                        $this->loadDefaults(); 
     
    912913 
    913914                if ( isset( $_SESSION['wsToken'] ) ) { 
    914                         $passwordCorrect = $_SESSION['wsToken'] == $this->mToken; 
     915                        $passwordCorrect = $proposedUser->getToken() === $_SESSION['wsToken']; 
    915916                        $from = 'session'; 
    916917                } else if ( isset( $_COOKIE["{$wgCookiePrefix}Token"] ) ) { 
    917                         $passwordCorrect = $this->mToken == $_COOKIE["{$wgCookiePrefix}Token"]; 
     918                        $passwordCorrect = $proposedUser->getToken() === $_COOKIE["{$wgCookiePrefix}Token"]; 
    918919                        $from = 'cookie'; 
    919920                } else { 
     
    923924                } 
    924925 
    925                 if ( ( $sName == $this->mName ) && $passwordCorrect ) { 
     926                if ( ( $sName === $proposedUser->getName() ) && $passwordCorrect ) { 
     927                        $this->loadFromUserObject( $proposedUser ); 
    926928                        $_SESSION['wsToken'] = $this->mToken; 
    927929                        wfDebug( "Logged in from $from\n" ); 
     
    932934                        $this->loadDefaults(); 
    933935                        return false; 
     936                } 
     937        } 
     938 
     939        /** 
     940         * Load the data for this user object from another user object.  
     941         */ 
     942        protected function loadFromUserObject( $user ) { 
     943                $user->load(); 
     944                $user->loadGroups(); 
     945                $user->loadOptions(); 
     946                foreach ( self::$mCacheVars as $var ) { 
     947                        $this->$var = $user->$var; 
    934948                } 
    935949        } 
  • trunk/w/includes/WebRequest.php

    r1915 r1918  
    698698 
    699699                if ( isset( $_SERVER['QUERY_STRING'] )  
    700                         && preg_match( '/\.[a-z0-9]{1,4}(#|\?|$)/i', $_SERVER['QUERY_STRING'] ) ) 
     700                        && preg_match( '/\.[^\\/:*?"<>|%]+(#|\?|$)/i', $_SERVER['QUERY_STRING'] ) ) 
    701701                { 
    702702                        // Bug 28235 
Note: See TracChangeset for help on using the changeset viewer.