Bug #891
closed
Errors When adding or editing an alias on Pfsense 2.0
Added by robert zelaya about 14 years ago.
Updated about 14 years ago.
Description
File: firewall_aliases_edit.php
1) pressing enter in the description box deletes the first entry
2) Error correction does not work for (Hosts, ports, networks). Example; page accepts 192.168.1.1s or 192.168.1.1s-192.168.1.22.
3) javascript Timeout error
The problem with 1) seems to be that the delete button is set as the default button. It deletes the first entry if you press enter with any field selected, but saves when enter pressed if there are no lines to have a delete button.
I see what the problem is with 1). The delete button is currently an image button in the form, which I think is treated as a submit button, and therefore the default button. It needs to be an <a href><img /></a> Refer to the HTML for the plus button.
I've fixed 1) and 3), but 2) will probably be difficult to fix without blocking some legitimate hosts, since this does not only deal with IP addresses.
- Status changed from New to Resolved
The examples given for 2) while probably a typo is a legit hostname, we can't do anything about that one without blocking legit data. The rest looks good.
Also available in: Atom
PDF