From a3e0ca96a4c7d7e5de07a3c32febd4eb3c84cb19 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Tue, 14 May 2013 18:22:32 -0700 Subject: [PATCH] Avoid creating // sequences in jailed_file return value --- Girocco/Util.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Girocco/Util.pm b/Girocco/Util.pm index 4ff99c0..7efbf87 100644 --- a/Girocco/Util.pm +++ b/Girocco/Util.pm @@ -22,6 +22,7 @@ sub scrypt { sub jailed_file { my ($filename) = @_; + $filename =~ s,^/,,; $Girocco::Config::chroot."/$filename"; } -- 2.11.4.GIT