From 11575fb7497c3c4592a560220b6ab832fdfb93ee Mon Sep 17 00:00:00 2001 From: gRoussac Date: Thu, 16 May 2013 11:05:19 +0200 Subject: [PATCH] [-] CORE : referer keywords truncated before insertion in connections table --- classes/ConnectionsSource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }