Actions
Bug #7394
closedfirewall_aliases_edit.php: Renaming an alias after input errors fails to update references
Start date:
03/15/2017
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
All
Affected Architecture:
All
Description
When renaming an alias the firewall normally checks for references in firewall/nat rules and updates the alias name where needed. This works fine when renaming to a valid new name. However, if the user submits an invalid name first, then fixes and resubmits, the rename action does not take place.
It looks like the alias' actual original name is lost on the second submission. $_POST['origname'] should always be the original name from the entry being edited but it appears to be getting overwritten with the submitted value, which confuses the rename process.
Actions