From 60671ab46bf71e7d0bbd00fe563b7e3c4ec392c8 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Thu, 21 Feb 2013 16:19:10 +0100 Subject: [PATCH] [-] FO : cut long referrers in order to avoid a crash #PSCFV-7775 --- classes/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Connection.php b/classes/Connection.php index 19d6d6376..b250e4ea5 100644 --- a/classes/Connection.php +++ b/classes/Connection.php @@ -145,7 +145,7 @@ class ConnectionCore extends ObjectModel $connection->id_shop_group = Context::getContext()->shop->id_shop_group; $connection->date_add = $cookie->date_add; if (Validate::isAbsoluteUrl($referer)) - $connection->http_referer = $referer; + $connection->http_referer = substr($referer, 0, 254); $connection->add(); $cookie->id_connections = $connection->id; return $connection->id_page;