Bug #2374

When entering values in firewall rules leading and trailing spaces are not deleted

Added by Oliver Loch about 1 year ago. Updated 3 months ago.

Status:Feedback Start date:04/13/2012
Priority:Very Low Due date:
Assignee:- % Done:

0%

Category:Web Interface
Target version:-
Affected version:2.0.1 Affected Architecture:All

Description

Hi,

as the topic says. If you enter a port number in the firewall rules page and you add a leading or trailing space by mistake the system complaints about this and says that the number is not a valid portnumber.

As one can't see the space in the error message it's kinda tricky.

I added a screenshot to show the problem. The trailing space is at the end of the destination port range's end number.

Automagic format or something would be nice.

KR,

Grimeton

screenshot.png (146.4 kB) Oliver Loch, 04/13/2012 10:40 am

Associated revisions

Revision 90f90934
Added by Cristian Feldman about 1 year ago

Fix of bug #2374 "When entering values in firewall rules leading and
trailing spaces are not deleted"

Revision e4834b57
Added by Jim P about 1 year ago

Merge pull request #111 from vizvayu/bug2374

Fix of bug #2374 "When entering values in firewall rules leading and trailing spaces are not deleted" bis

History

#1 Updated by Jim P about 1 year ago

  • Subject changed from When entering port numbers in firewall rules leading and trailing spaces are not deleted to When entering values in firewall rules leading and trailing spaces are not deleted

Same thing happens for IPs also. Shouldn't be too hard to trim() before checking though.

#2 Updated by Jim P 3 months ago

  • Status changed from New to Feedback

Fixed by commit on this ticket but not marked as fixed.

Also available in: Atom PDF