Allow :'s in the path, query string, and fragment parts of the url (Mediawiki URLs often do this)
This commit is contained in:
		@@ -442,9 +442,9 @@ function common_replace_urls_callback($text, $callback, $notice_id = null) {
 | 
			
		||||
        ')'.
 | 
			
		||||
        '(?:'.
 | 
			
		||||
            '(?:\:\d+)?'. //:port
 | 
			
		||||
            '(?:/[\pN\pL$\[\]\,\!\(\)\.\-\_\+\/\=\&\;\%\~]*)?'. // /path
 | 
			
		||||
            '(?:\?[\pN\pL\$\[\]\,\!\(\)\.\-\_\+\/\=\&\;\%\~\/]*)?'. // ?query string
 | 
			
		||||
            '(?:\#[\pN\pL$\[\]\,\!\(\)\.\-\_\+\/\=\&\;\%\~\/\?\#]*)?'. // #fragment
 | 
			
		||||
            '(?:/[\pN\pL$\[\]\,\!\(\)\.\:\-\_\+\/\=\&\;\%\~]*)?'. // /path
 | 
			
		||||
            '(?:\?[\pN\pL\$\[\]\,\!\(\)\.\:\-\_\+\/\=\&\;\%\~\/]*)?'. // ?query string
 | 
			
		||||
            '(?:\#[\pN\pL$\[\]\,\!\(\)\.\:\-\_\+\/\=\&\;\%\~\/\?\#]*)?'. // #fragment
 | 
			
		||||
        ')(?<![\?\.\,\#\,])'.
 | 
			
		||||
    ')'.
 | 
			
		||||
    '#ixu';
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user