Bugfix: not complete a url with parameter or fragment
This commit is contained in:
		
					parent
					
						
							
								404ed27fb4
							
						
					
				
			
			
				commit
				
					
						9804e65d18
					
				
			
		
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -340,6 +340,8 @@ function html2bbcode($message, $basepath = '') | |||
|  */ | ||||
| function addHostnameSub($matches, $basepath) { | ||||
| 	$base = parse_url($basepath); | ||||
| 	unset($base['query']); | ||||
| 	unset($base['fragment']); | ||||
| 
 | ||||
| 	$link = $matches[0]; | ||||
| 	$url = $matches[1]; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue