[drupal-devel]
[bug] [pgsql] watchdog referer, location field length
Cvbge
drupal-devel at drupal.org
Mon Aug 29 14:29:06 UTC 2005
Issue status update for
http://drupal.org/node/29814
Post a follow up:
http://drupal.org/project/comments/add/29814
Project: Drupal
Version: cvs
Component: watchdog.module
Category: bug reports
Priority: normal
Assigned to: Anonymous
Reported by: Thomas Ilsche
Updated by: Cvbge
-Status: active
+Status: patch (code needs review)
Attachment: http://drupal.org/files/issues/drupal-head-referer-29814.diff (1.07 KB)
This patch cuts referer to 128 characters before inserting into db, not
tested.
About field length - don't know what's right approach.
Cvbge
Previous comments:
------------------------------------------------------------------------
Sat, 27 Aug 2005 17:40:30 +0000 : Thomas Ilsche
It is quite easy to exceed the the watchdog referer and location field
length of 128.
The problem especielly with pgsql is that it generates an error, not
just truncate the content like MySQL does.
1. For all databases I would suggest changing the limit to 255 (which
is, at least for MySQL, the real limit).
2. More imporant: Add substrs to watchdog().
I would make a patch for the second but I fear I lack knowledge of
update_***() for the first.
More information about the drupal-devel
mailing list