truncate to 255

This commit is contained in:
Garvin Hicking 2010-03-30 10:47:15 +00:00
parent 0745f14942
commit 63244381f8
2 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,9 @@
Version 1.6 () Version 1.6 ()
------------------------------------------------------------------------ ------------------------------------------------------------------------
* Truncate suppressed referrer's query string to 255 characters
(ads)
* Fix "viewAuthor" URL detection routine if the path name of a * Fix "viewAuthor" URL detection routine if the path name of a
domain begins with a number. (garvinhicking) domain begins with a number. (garvinhicking)

View File

@ -739,6 +739,8 @@ function serendipity_track_referrer($entry = 0) {
$ts = serendipity_db_get_interval('ts'); $ts = serendipity_db_get_interval('ts');
$interval = serendipity_db_get_interval('interval', 900); $interval = serendipity_db_get_interval('interval', 900);
$url_parts['query'] = substr($url_parts['query'], 0, 255);
$suppressq = "SELECT count(1) $suppressq = "SELECT count(1)
FROM $serendipity[dbPrefix]suppress FROM $serendipity[dbPrefix]suppress