mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-29 06:51:30 -05:00
cleanup: post model
This commit is contained in:
+1
-3
@@ -104,9 +104,7 @@ class Post extends Model
|
||||
*/
|
||||
public function setContentAttribute($value)
|
||||
{
|
||||
$antiXss = new AntiXSS();
|
||||
|
||||
$this->attributes['content'] = $antiXss->xss_clean($value);
|
||||
$this->attributes['content'] = (new AntiXSS())->xss_clean($value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user