]> git.proxmox.com Git - pve-installer.git/commit
fix #5230: sys: net: properly escape FQDN regex
authorChristoph Heiss <c.heiss@proxmox.com>
Thu, 15 Feb 2024 12:39:38 +0000 (13:39 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 23 Feb 2024 16:28:54 +0000 (17:28 +0100)
commitf6bea065f7bd925f47303cb5b05895c335fce253
tree9b6856050737371d6ffd3f0e72eab97158cf548f
parent1a5665378b75d5b7d3b838c39c93600bea7cb609
fix #5230: sys: net: properly escape FQDN regex

Due to interpolation, the \. sequence must be double-escaped.
Previously, this would result in a non-escaped dot, thus matching much
more liberally than it should.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
 [ TL: fix bug # reference in code comments ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Proxmox/Sys/Net.pm
proxmox-installer-common/src/utils.rs
test/parse-fqdn.pl