firewall_aliases_edit.php: Renaming an alias after input errors fails to update references
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.