Force space after /me to prevent posting "as someone else"
This commit is contained in:
4
chat.php
4
chat.php
@ -2890,8 +2890,8 @@ function validate_input(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($poststatus!==9 && preg_match('~^/me~iu', $message)){
|
if($poststatus!==9 && preg_match('~^/me~iu', $message)){
|
||||||
$displaysend=style_this(htmlspecialchars($U['nickname']), $U['style']);
|
$displaysend=style_this(htmlspecialchars("$U[nickname] "), $U['style']);
|
||||||
$message=preg_replace("~^/me~iu", '', $message);
|
$message=preg_replace("~^/me\s?~iu", '', $message);
|
||||||
}
|
}
|
||||||
$message=apply_filter($message, $poststatus, $U['nickname']);
|
$message=apply_filter($message, $poststatus, $U['nickname']);
|
||||||
$message=create_hotlinks($message);
|
$message=create_hotlinks($message);
|
||||||
|
Reference in New Issue
Block a user