Browse Source

Update Post.php

Restrictions for user agent.
Visman 3 years ago
parent
commit
3f7d5c996b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Models/Pages/Post.php

+ 1 - 1
app/Models/Pages/Post.php

@@ -249,7 +249,7 @@ class Post extends Page
 #           $post->edited       =
 #           $post->editor       =
 #           $post->editor_id    =
-            $post->user_agent   = $this->user->userAgent;
+            $post->user_agent   = \mb_substr($this->user->userAgent, 0, 255, 'UTF-8');
             $post->topic_id     = $topic->id;
 
             $this->c->posts->insert($post);