From 05a1443fd3364b1804918267edfa1a8741bcbf19 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 16 May 2024 17:21:38 +0200 Subject: security --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_url.class') diff --git a/it_url.class b/it_url.class index a0ba77f..8001469 100644 --- a/it_url.class +++ b/it_url.class @@ -703,7 +703,7 @@ static function get_cache($p = array()) { it::file_put($p['cachedir'] . "/cleaned", ""); # touch could have permission problems $maxagemin = intval($p['maxage']/60); - exec("nohup bash -c 'cd {$p['cachedir']} && for i in ??; do sleep 20; ionice -c 3 find \$i -mmin +$maxagemin -type f -delete; done' /dev/null 2>&1 &"); + exec("nohup bash -c 'cd {$p['cachedir']} && for i in ??; do sleep 20; ionice -c 3 find \"\$i\" -mmin +\"$maxagemin\" -type f -delete; done' /dev/null 2>&1 &"); } if (EDC('getcachelog')) -- cgit v1.2.3