Skip to content

Commit

Permalink
Ensure device models can't exceed the database column limit (#21072)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Jul 27, 2023
1 parent 71ce1fc commit 0473f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/DevicesDetection/Columns/DeviceModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function onNewVisit(Request $request, Visitor $visitor, $action)
$model = $parser->getModel();

if (!empty($model)) {
return $model;
return mb_substr($model, 0, 100);
}

$deviceType = $parser->getDeviceName();
Expand Down

0 comments on commit 0473f3b

Please sign in to comment.