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
Spam RBL update. Closes #657
