Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2022-06-22 06:45:23 +0300
committerGitHub <noreply@github.com>2022-06-22 06:45:23 +0300
commit260f51281fd805fd45de26a6d8d7d3329cad7f97 (patch)
treed78ca841cb0a68c1e3a3f3cc57b2ef80cb324e6d /plugins
parentb8c84b378527367ed5c3495f1f680d941200a8b5 (diff)
Fix problem with too long browser versions (#19325)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/DevicesDetection/Columns/BrowserVersion.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/DevicesDetection/Columns/BrowserVersion.php b/plugins/DevicesDetection/Columns/BrowserVersion.php
index d8df75b4fc..9b2de1de0b 100644
--- a/plugins/DevicesDetection/Columns/BrowserVersion.php
+++ b/plugins/DevicesDetection/Columns/BrowserVersion.php
@@ -1,4 +1,5 @@
<?php
+
/**
* Matomo - free/libre analytics platform
*
@@ -6,6 +7,7 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
+
namespace Piwik\Plugins\DevicesDetection\Columns;
use Piwik\Tracker\Request;
@@ -36,8 +38,7 @@ class BrowserVersion extends Base
$aBrowserInfo = $parser->getClient();
if (!empty($aBrowserInfo['version'])) {
-
- return $aBrowserInfo['version'];
+ return substr($aBrowserInfo['version'], 0, 20);
}
return '';