mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-04 01:09:58 -05:00
cleanup: private message model
This commit is contained in:
@@ -89,9 +89,7 @@ class PrivateMessage extends Model
|
||||
*/
|
||||
public function setMessageAttribute($value)
|
||||
{
|
||||
$antiXss = new AntiXSS();
|
||||
|
||||
$this->attributes['message'] = $antiXss->xss_clean($value);
|
||||
$this->attributes['message'] = (new AntiXSS())->xss_clean($value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user