mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:51:07 +08:00
FIX: Don't use backticks that take in inputs.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user