summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-11-28 10:49:37 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-11-28 10:49:37 -0800
commit1d78b0c336c8d3ae62f65983098584a6e2e613ce (patch)
tree7095fba230985373859128635ec0de7d2650da88
parente9a1afa57971cc00be0d8cb8583b123b6fb7439c (diff)
downloadvyatta-cfg-1d78b0c336c8d3ae62f65983098584a6e2e613ce.tar.gz
vyatta-cfg-1d78b0c336c8d3ae62f65983098584a6e2e613ce.zip
fix for bug 2494: correctly handle '/' in config traversal code.
-rw-r--r--scripts/VyattaConfig.pm2
1 files changed, 1 insertions, 1 deletions
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;