Trailing whitespace

Started by speedy, July 16, 2017, 03:34:34 PM

Previous topic - Next topic
July 16, 2017, 03:34:34 PM Last Edit: July 16, 2017, 03:47:38 PM by speedy
Hello everyone.

I was having a problem with one of my firewall aliases. The cause was accidental trailing whitespace. However, this was not obvious from the user interface, so it took me some time to figure out where I had made the error.

I don't think I'm the only newbie who might make a mistake like this, so maybe the user interface could somehow warn the user that a particular input field has trailing whitespace?

Hi speedy,

Which field? Some fields have validation for that reason, some fields can't have validation because they are being fed arbitrary strings including whitespace / UTF-8, etc.


Cheers,
Franco

Spamhaus drop URL table had accidentally two trailing spaces.
like this: https://www.spamhaus.org/drop/drop.txt 
correct value is: https://www.spamhaus.org/drop/drop.txt

It failed silently, and it was not instantly obvious that I had trailing white space.

Maybe whitespace could be somehow made visible? With color for example?

in this case a whitespace character is forbidden. It can be removed without issues because it would be converted to a "+" if it would be used.