2011 January, 25 (Guerric)

    Table of contents
    No headers
    // Paste PHP Code
    Index: GlobalFunctions.php
    ===================================================================
    --- GlobalFunctions.php	(revision 24794)
    +++ GlobalFunctions.php	(working copy)
    @@ -1468,14 +1468,26 @@
     	$u = wfParseUrl($url);
     	
     	//scrub passwords
    -	if (isset($u['pass'])) {
    +	if (isset($u['pass']))
    +	{
     		$u['pass'] = wfMsg('System.Common.sensitive-data-replacement');
     	}
    +	if (isset($u['query']['password']))
    +	{
    +		 $u['query']['password'] = wfMsg('System.Common.sensitive-data-replacement');
    +	}
    +	if (isset($u['query']['authpassword']))
    +	{
    +		 $u['query']['authpassword'] = wfMsg('System.Common.sensitive-data-replacement');
    +	}
    +	
     	//scrub apikey
    -	if (isset($u['query']['apikey'])) {
    +	if (isset($u['query']['apikey']))
    +	{
     		$u['query']['apikey'] = wfMsg('System.Common.sensitive-data-replacement');
     	}
    -	return wfUnparseUrl($u);	
    +	
    +	return wfUnparseUrl($u);
     }
     
     //used in updaters-mindtouch.inc
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by