[-] CORE : referer keywords truncated before insertion in connections table
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user