[-] CORE : referer keywords truncated before insertion in connections table

This commit is contained in:
gRoussac
2013-05-16 11:05:19 +02:00
parent 0a0f313de7
commit 11575fb749
+1 -1
View File
@@ -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;
}