Skip to content

Commit

Permalink
Merge pull request #181 from grtaylor/languagebugfix
Browse files Browse the repository at this point in the history
Fixed issue where browser language was greater than 20 characters an Mysql is in strict mode. fixes #4450
thanks for report & PR
  • Loading branch information
Matthieu Aubry committed Dec 27, 2013
2 parents 564f092 + 19fc85b commit b659beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Tracker/Visit.php
Expand Up @@ -609,7 +609,7 @@ protected function getUserSettingsInformation()
$os = UserAgentParser::getOperatingSystem($userAgent);
$os = $os === false ? 'UNK' : $os['id'];

$browserLang = $this->request->getBrowserLanguage();
$browserLang = substr($this->request->getBrowserLanguage(), 20); // limit the length of this string to match db
$configurationHash = $this->getConfigHash(
$os,
$browserName,
Expand Down

0 comments on commit b659beb

Please sign in to comment.