Accept ipv6 addresses as moderator.

"http_authentication_method=None" will bypass
HTTP AUTH and take the IP address as user
name, but the "moderator" column in each
database is limited to 20 chars, whereas
IPv6 addresses may be as long as 39 chars.
IPv6 was clearly not a consideration for
development.

Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
Thomas Hochstein 2026-02-22 11:01:51 +01:00
parent 078973d862
commit 44676b3453
2 changed files with 2 additions and 1 deletions

View file

@ -9,6 +9,7 @@ huhu 0.11.0 (unreleased)
* Fix headers with continuation immediately at start.
* Add cronjob to remove old backup messages.
* Hide MySQL config for unauthenticated users.
* Accept ipv6 addresses as moderator.
huhu 0.10 (unknown)
* huhu reports version 0.09 (from MOD/Displaylib.pm), but has code

View file

@ -34,7 +34,7 @@ CREATE TABLE @sample@ (
Header longblob NOT NULL,
Body longblob NOT NULL,
Spamcount float DEFAULT 0.0,
Moderator varchar(20),
Moderator varchar(40),
Moddatum DATETIME,
checksum char(40) UNIQUE,
flag bool DEFAULT 0,