From 7f565e318fcc9b18ca99ffd03579102ab4e413a9 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 13 Oct 2017 08:59:32 -0400 Subject: [PATCH] use the untaint version otherwise we die with error 9 --- scripts/ZoneMinder/lib/ZoneMinder/Event.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Event.pm b/scripts/ZoneMinder/lib/ZoneMinder/Event.pm index 67b7a53bc..fbb249773 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Event.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Event.pm @@ -365,7 +365,7 @@ sub DiskUsage { } if ( ! defined $_[0]{DiskUsage} ) { my $size = 0; - File::Find::find( sub { $size += -f $_ ? -s _ : 0 }, $_[0]->Path() ); + File::Find::find( { wanted=>sub { $size += -f $_ ? -s _ : 0 }, untaint=>1 }, $_[0]->Path() ); $_[0]{DiskUsage} = $size; } }