]> git.proxmox.com Git - pve-common.git/commit - src/PVE/INotify.pm
fix #5141: network parser: fix accidental RE result re-use
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 21 Dec 2023 15:30:24 +0000 (16:30 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 3 Jan 2024 11:16:14 +0000 (12:16 +0100)
commit80ed66dc17a5beb3606f8d4801852df434d723c0
tree49bf25d7324f8188084269d90af2ba3d6c1b7422
parentfcc97ec96da813460f73ff928f9ee5843375d744
fix #5141: network parser: fix accidental RE result re-use

$1 and friends are not cleared if a RE fails to match, in which case they will
contain the captured values from a previous successful match in the same scope.

deduplicate the two branches to avoid accidental re-introduction.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/INotify.pm