Skip to content

Commit

Permalink
Merge pull request #8 from iMi-digital/fix/56218-cut-user-agent
Browse files Browse the repository at this point in the history
#56218 cut user agent to fit varchar(191)
  • Loading branch information
amenk authored Jul 14, 2020
2 parents 48854ab + 6be3f68 commit a539dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LogRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected function getData($request) : array
'ip' => $request->getClientIp(),
'path' => urldecode($request->path()),
'method' => $request->getMethod(),
'agent' => $request->server('HTTP_USER_AGENT'),
'agent' => substr($request->server('HTTP_USER_AGENT'), 0, 191),
'get' => $this->get($request),
'post' => $this->post($request),
'cookies' => $this->cookies($request),
Expand Down

0 comments on commit a539dc6

Please sign in to comment.