sbpp / sourcebans-pp

Admin, ban, and comms management system for the Source engine
https://sbpp.github.io/
Creative Commons Attribution Share Alike 4.0 International
328 stars 174 forks source link

[WebPanel] IPv6 issue #924

Closed Rushaway closed 10 months ago

Rushaway commented 10 months ago

What are the steps to reproduce this issue?

  1. Use an IPv6 adress
  2. Try to insert a comms/bans
  3. Issue

What happens?

After you insert a comms/bans via webpanel, if you use an IPv6, it will say the comms/ban has been added but nothing was inserted in the DB.

What were you expecting to happen?

Insert punishement in the DB

Any logs, error output, etc.?

Adding some debug result: Data too long for column adminIp at row 1

Any other comments?

What versions of software are you using?

Operating System: nginx SourceBans++ Version: lastest github zip PHP Version: 8.1 (lastest) MySQL Version: 10.6.7-MariaDB-2ubuntu1 - Ubuntu 22.04 Link to your project: https://bans.nide.gg/index.php Link to a phpinfo() output: https://bans.nide.gg/phpinfo.php