Project

General

Profile

Bug #7394

firewall_aliases_edit.php: Renaming an alias after input errors fails to update references

Added by Jim Pingle 12 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Rules/NAT
Target version:
Start date:
03/15/2017
Due date:
% Done:

0%

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.

Also available in: Atom PDF