[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mediawiki-l
Subject:    Re: [MediaWiki-l] PHP-error from code of master-source?
From:       Katharina Wolkwitz <wolkwitz () fh-swf ! de>
Date:       2014-10-22 11:44:52
Message-ID: 544798B4.2010200 () fh-swf ! de
[Download RAW message or body]

Hi again,

now it works. Thanks for pointing me to the correct page for getting all the
source-code. Not being a programmer when I went to the normal source-code I
didn't have the right understanding to see that I needed the additional function
as well. ;-)

Kate

Am 21.10.2014 um 18:06 schrieb Bartosz DziewoƄski:
> I don't entirely understand your problem.
> 
> On master, this part of code reads:
> 
> 		$url = preg_replace_callback( '/[\][<>"\\x00-\\x20\\x7F\|]/',
> 			array( __CLASS__, 'cleanUrlCallback' ), $url );
> 
> And Sanitizer::cleanUrlCallback most definitely is a valid function,  
> defined a few lines below:
> 
> 	static function cleanUrlCallback( $matches ) {
> 		return urlencode( $matches[0] );
> 	}
> 
> If you patches that part of code in older MediaWiki with the version from  
> master, you must also copy the function for it to have a chance of  
> working. This code was last touched in 2011:  
> http://mediawiki.org/wiki/Special:Code/MediaWiki/85421
> 

_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic