mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: Don't use backticks that take in inputs.
This commit is contained in:
parent
b49bf889f6
commit
e7c972ac89
11 changed files with 51 additions and 57 deletions
|
@ -59,7 +59,7 @@ module FileStore
|
|||
end
|
||||
|
||||
def purge_tombstone(grace_period)
|
||||
`find #{tombstone_dir} -mtime +#{grace_period} -type f -delete`
|
||||
Discourse::Utils.execute_command('find', tombstone_dir, '-mtime', "+#{grace_period}", '-type f -delete')
|
||||
end
|
||||
|
||||
def get_path_for(type, upload_id, sha, extension)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue