diff --git a/classes/ConnectionsSource.php b/classes/ConnectionsSource.php index 0e86de001..183630682 100644 --- a/classes/ConnectionsSource.php +++ b/classes/ConnectionsSource.php @@ -75,7 +75,7 @@ class ConnectionsSourceCore extends ObjectModel if (Validate::isAbsoluteUrl(strval($_SERVER['HTTP_REFERER']))) { $source->http_referer = substr(strval($_SERVER['HTTP_REFERER']), 0, ConnectionsSource::$uri_max_size); - $source->keywords = trim(SearchEngine::getKeywords(strval($_SERVER['HTTP_REFERER']))); + $source->keywords = substr(trim(SearchEngine::getKeywords(strval($_SERVER['HTTP_REFERER']))), 0, ConnectionsSource::$uri_max_size); if (!Validate::isMessage($source->keywords)) return false; }