Bug #657
[PATCH] ip field too short when using IPv6
| Status : | Closed | Start : | ||
| Priority : | Normal | Due date : | ||
| Assigned to : | tobi - | % Done : | 0% |
|
| Category : | backend | |||
| Target version : | - | |||
| Resolution : | fixed |
Description
Trying to comment an Article when using a IPv6-Capable Webserver will lead to an SQL-Error.
PGError: ERROR: value too long for type character varying(15) : INSERT INTO comments ("body_html", "updated_at", "body", "title", "author", "url", "ip", "article_id", "created_at", "email") VALUES('Hmm, nicht wirklich hübsch.... TEST, TEST', '2006-02-18 00:43:04', 'Hmm, nicht wirklich hübsch.... TEST, TEST', NULL, 'Toke', _, '::ffff:192.168.62.30', 5, '2006-02-15 00:27:26', _)
An IPv6-Address is maximum 8*4+7 Chars long when printed.
Associated revisions
Revision e4200af5497c0e4814a9e97c8f07dd7d0e7ae6c7
Spam RBL update. Closes #657
git-svn-id: http://svn.typosphere.org/typo/trunk@870 820eb932-12ee-0310-9ca8-eeb645f39767
History
02/18/2006 12:40 AM - typo-toke-bluesky-inka-de -
Setting the Size of the ip varchar row to 39 Chars will fix that issue.
