includes/bootstrap.inc

db_query("INSERT INTO {watchdog} (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (%d, '%s', '%s', %d, '%s', '%s', '%s', '%s', %d)", $user->uid, $type, $message, $severity, $link, $request_uri, referer_uri(), $_SERVER['REMOTE_ADDR'], time());

at least referer_uri() and $link should be truncated -> substr(referer_uri(),0,128) substr($link,0,255)

cleanurl is nice, GET should be bad, but bookmarkable search results should be good.

Comments

dave reid’s picture

Status: Active » Closed (duplicate)

Duplicate of #107824: Convert {watchdog}.referer and {accesslog}.url from VARCHAR to TEXT. We'll get it fixed in HEAD, then work our way down to backport.