mirror of
				https://github.com/Mibew/i18n.git
				synced 2025-11-01 01:36:57 +03:00 
			
		
		
		
	HTTPS links highlighting
Make a https links highlighting too.
This commit is contained in:
		
							parent
							
								
									5a93a16303
								
							
						
					
					
						commit
						ccc9bdfbb0
					
				| @ -78,7 +78,7 @@ function post_message($threadid, $kind, $message, $from = null, $agentid = null) | ||||
| function prepare_html_message($text) | ||||
| { | ||||
| 	$escaped_text = safe_htmlspecialchars($text); | ||||
| 	$text_w_links = preg_replace('/(http|ftp):\/\/\S*/', '<a href="$0" target="_blank">$0</a>', $escaped_text); | ||||
| 	$text_w_links = preg_replace('/(http|https|ftp):\/\/\S*/', '<a href="$0" target="_blank">$0</a>', $escaped_text); | ||||
| 	$multiline = str_replace("\n", "<br/>", $text_w_links); | ||||
| 	return $multiline; | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user