Jun. 22nd, 2015

github: shadowy octopus with the head of a robot, emblazoned with the Dreamwidth swirl (Default)
[personal profile] github
Branch: refs/heads/develop
Home: https://github.com/dreamwidth/dw-free
Commit: 8225e1767ef1e3132380b637e7c8bb29225daf3a
https://github.com/dreamwidth/dw-free/commit/8225e1767ef1e3132380b637e7c8bb29225daf3a
Author: Kareila <kareila@dreamwidth.org>
Date: 2015-05-23 (Sat, 23 May 2015)

Changed paths:
M bin/upgrading/update-db-general.pl
M htdocs/admin/spamreports.bml
M htdocs/admin/spamreports.bml.text

Log Message:
-----------
[#1315] allow spamreports to handle IPv6 addresses

This patch does two things:

1. Widens the column for IP addresses in the spamreports table from 15 characters to 39.
An IPv6 address may contain 8 16-bit colon-separated hexadecimal codes for a maximum
width of 8*5-1 = 39 characters.

2. Allows the spamreport page to load for any given IP value that is 39 characters or less.
If the IP does not exist in the spamreports database, the "noreports" error will be shown.
If the IP exists, the report may be viewed and closed, but the sysban option will not be
presented unless it is a valid IPv4 address. Once we verify sysban support for IPv6,
this clause may be removed.

Fixes #1315.


Commit: 0fa8e2759a8d9b5eb62733d47cfc8a093aedd55d
https://github.com/dreamwidth/dw-free/commit/0fa8e2759a8d9b5eb62733d47cfc8a093aedd55d
Author: Kareila <kareila@dreamwidth.org>
Date: 2015-06-08 (Mon, 08 Jun 2015)

Changed paths:
M bin/upgrading/update-db-general.pl
M htdocs/admin/spamreports.bml
M htdocs/admin/spamreports.bml.text

Log Message:
-----------
[#1315] tweaks based on alierak's comments

Removed the proposed verify_ipv6 subroutine, since it doesn't capture all edge
cases and isn't directly relevant to the main purpose of the change, which is
to allow non-IPv4 spamreports to be closed. Also further widened the IP column
of the spamreports table from 39 to 45 characters, just in case we ever receive
any hybrid IPv6/IPv4 address formats.


Commit: d2f3d49673d1f32cd2be55bee3f770b12ee209e1
https://github.com/dreamwidth/dw-free/commit/d2f3d49673d1f32cd2be55bee3f770b12ee209e1
Author: Mark Smith <mark@qq.is>
Date: 2015-06-22 (Mon, 22 Jun 2015)

Changed paths:
M bin/upgrading/update-db-general.pl
M htdocs/admin/spamreports.bml
M htdocs/admin/spamreports.bml.text

Log Message:
-----------
Merge pull request #1393 from kareila/1315-ipv6

[#1315] allow spamreports to handle IPv6 addresses


Compare: https://github.com/dreamwidth/dw-free/compare/8d2af7d6547a...d2f3d49673d1
Page generated Jun. 7th, 2025 10:29 am
Powered by Dreamwidth Studios