diff --git a/chat.php b/chat.php
index 54b6a73..d454497 100644
--- a/chat.php
+++ b/chat.php
@@ -3038,7 +3038,7 @@ function apply_linkfilter($message){
}elseif(preg_match_all('/(.*?(?=<\/a>))<\/a>/u', $message, $matches)){
foreach($matches[1] as $match){
if(!preg_match('~^http(s)?://~u', $match)){
- $message=preg_replace_callback('/(.*?(?=<\/a>))<\/a>/u',
+ $message=preg_replace_callback('/(.*?(?=<\/a>))<\/a>/u',
function ($matched) use($redirect){
return "$matched[2]";
}