Highfivery / zero-spam-for-wordpress

The WordPress Zero Spam plugin makes blocking spam a cinch without all the bloated options. Just install, activate, and say goodbye to spam.
https://wordpress.org/plugins/zero-spam/
73 stars 32 forks source link

Possible [BUG] - IP Whitelist field contains characters that weren't entered by the user #303

Closed richboos closed 2 years ago

richboos commented 2 years ago

Describe the bug If you enter a single IP address into this field, when the page loads after saving there are extra characters. This might just be a visual issue and not an indication that IP Whitelisting itself has a problem. I did not check to see if this means extra characters are actually being stored in the database. IP Whitelisting has never worked for us, so I cannot tell if this is actually causing a problem.

To Reproduce Steps to reproduce the behavior:

  1. Go to ZeroSpam settings, IP Whitelist settings
  2. Clear everything out of the field
  3. Enter a single IP address
  4. Save

Expected behavior Upon re-loading the page, you would only expect the IP Whitelist field to contain the single IP address you entered.

Instead, there are 11-12 tab characters in front of the IP address, and 4 after it, at least in my experience.

Screenshots My entry before saving https://www.dropbox.com/s/1f3bshrkxapo5ya/my-entry.PNG?dl=0

My entry after saving https://www.dropbox.com/s/azwp2c759snuuqk/after-saving.PNG?dl=0

NotePad++ showing what is in the field after saving https://www.dropbox.com/s/1up48qsu0d1xghx/notepad-plus-plus.PNG?dl=0

ianpegg commented 2 years ago

Can confirm the same issue as the OP across all my client sites, running WP 5.8.3 & 5.9.

bmarshall511 commented 2 years ago

Thanks for the report guys, this will be fixed in the next release.