diff --git a/chat.php b/chat.php
index facdf75..2d87070 100644
--- a/chat.php
+++ b/chat.php
@@ -3012,7 +3012,7 @@ function apply_linkfilter($message){
}
$redirect=get_setting('redirect');
if(get_setting('imgembed')){
- $message=preg_replace_callback('/\[img\]\s?(.*?(?=<\/a>))<\/a>/iu',
+ $message=preg_replace_callback('/\[img\]\s?(.*?(?=<\/a>))<\/a>/iu',
function ($matched){
return str_ireplace('[/img]', '', "

");
}