mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
SECURITY: Disallow symlinks when restoring uploads.
This commit is contained in:
parent
566f367fc3
commit
b49bf889f6
1 changed files with 1 additions and 1 deletions
|
@ -380,7 +380,7 @@ module BackupRestore
|
|||
current_db_name = RailsMultisite::ConnectionManagement.current_db
|
||||
|
||||
execute_command(
|
||||
'rsync', '-avp', "#{tmp_uploads_path}/", "uploads/#{current_db_name}/",
|
||||
'rsync', '-avp', '--safe-links', "#{tmp_uploads_path}/", "uploads/#{current_db_name}/",
|
||||
failure_message: "Failed to restore uploads."
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue