Visitors of forums, who connects with a IPv6 network address to the specific instance encounters blank pages or an error page with HTTP-status 500. Because of the every when and then error (maany Internet users still receive IPv4 addresses from their access providers) it wasn't easy to get it.
In this PR the table column mlf2_useronline.ip, that causes the problem gets enlarged from a length of 15 bytes to a length of 128 bytes. Also the column type changes from char to varchar. Last but not least the column mlf2_logincontrol.ip, which until now has a size of up to 255 bytes, gets restricted to 128 bytes.
Doing this, all four columns in different tables with the purpose of storing IP addresses will have the same size and the same datatype.
[x] mlf2_useronline.ip: enlarge to 128 bytes in the installation script
[x] mlf2_useronline.ip: change from char to varchar in the installation script
[x] mlf2_logincontrol.ip: restrict to 128 bytes in the installation script
[x] mlf2_useronline.ip: enlarge to 128 bytes in the upgrade script
[x] mlf2_useronline.ip: change from char to varchar in the upgrade script
[x] mlf2_logincontrol.ip: restrict to 128 bytes in the upgrade script
Visitors of forums, who connects with a IPv6 network address to the specific instance encounters blank pages or an error page with HTTP-status 500. Because of the every when and then error (maany Internet users still receive IPv4 addresses from their access providers) it wasn't easy to get it.
In this PR the table column
mlf2_useronline.ip
, that causes the problem gets enlarged from a length of 15 bytes to a length of 128 bytes. Also the column type changes fromchar
tovarchar
. Last but not least the columnmlf2_logincontrol.ip
, which until now has a size of up to 255 bytes, gets restricted to 128 bytes.Doing this, all four columns in different tables with the purpose of storing IP addresses will have the same size and the same datatype.
mlf2_useronline.ip
: enlarge to 128 bytes in the installation scriptmlf2_useronline.ip
: change fromchar
tovarchar
in the installation scriptmlf2_logincontrol.ip
: restrict to 128 bytes in the installation scriptmlf2_useronline.ip
: enlarge to 128 bytes in the upgrade scriptmlf2_useronline.ip
: change fromchar
tovarchar
in the upgrade scriptmlf2_logincontrol.ip
: restrict to 128 bytes in the upgrade scriptThis will fix #681