diff options
author | Urban Müller | 2024-05-16 17:21:38 +0200 |
---|---|---|
committer | Urban Müller | 2024-05-16 17:21:38 +0200 |
commit | 05a1443fd3364b1804918267edfa1a8741bcbf19 (patch) | |
tree | 6eb022d65eb70e1c5611b1be36f2467206512444 | |
parent | 30b9d91de205bc960af631aaf490030eb8193d62 (diff) | |
download | itools-05a1443fd3364b1804918267edfa1a8741bcbf19.tar.gz itools-05a1443fd3364b1804918267edfa1a8741bcbf19.tar.bz2 itools-05a1443fd3364b1804918267edfa1a8741bcbf19.zip |
security
-rw-r--r-- | it_url.class | 2 |
1 files changed, 1 insertions, 1 deletions
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 >/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 >/dev/null 2>&1 &"); } if (EDC('getcachelog')) |