From 1d78b0c336c8d3ae62f65983098584a6e2e613ce Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Wed, 28 Nov 2007 10:49:37 -0800 Subject: fix for bug 2494: correctly handle '/' in config traversal code. --- scripts/VyattaConfig.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/VyattaConfig.pm b/scripts/VyattaConfig.pm index 476d586..a783957 100644 --- a/scripts/VyattaConfig.pm +++ b/scripts/VyattaConfig.pm @@ -89,7 +89,7 @@ sub listOrigNodes { my @nodes = (); if (defined $path) { - $path =~ s/%2F/\//g; + $path =~ s/\//%2F/g; $path =~ s/\s+/\//g; $path = $self->{_active_dir_base} . $self->{_current_dir_level} . "/" . $path; -- cgit v1.2.3