From 63244381f881acd8c72669a4cd5b7a3076ea8d45 Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Tue, 30 Mar 2010 10:47:15 +0000 Subject: [PATCH] truncate to 255 --- docs/NEWS | 3 +++ include/functions.inc.php | 2 ++ 2 files changed, 5 insertions(+) diff --git a/docs/NEWS b/docs/NEWS index a11c2b02..25272b76 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,9 @@ Version 1.6 () ------------------------------------------------------------------------ + * Truncate suppressed referrer's query string to 255 characters + (ads) + * Fix "viewAuthor" URL detection routine if the path name of a domain begins with a number. (garvinhicking) diff --git a/include/functions.inc.php b/include/functions.inc.php index ab75956b..863c1a22 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -739,6 +739,8 @@ function serendipity_track_referrer($entry = 0) { $ts = serendipity_db_get_interval('ts'); $interval = serendipity_db_get_interval('interval', 900); + + $url_parts['query'] = substr($url_parts['query'], 0, 255); $suppressq = "SELECT count(1) FROM $serendipity[dbPrefix]suppress