Prevent renaming ML object into existing file.
When renaming objects in the Media Library, s9y didn't check if a file with the same name already exists, resulting in a file name collision deleting both files from the database _and_ from disk. Add a check to avoid that. An error message would be nice, too, but that may be added later on. Tested on s9y-stable test instance. Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
@ -1,6 +1,9 @@
|
||||
Version 2.4-alpha1 ()
|
||||
------------------------------------------------------------------------
|
||||
|
||||
* Fix: Prevent renaming a ML object into an existing file,
|
||||
resulting in deletion of both from disk and database.
|
||||
|
||||
* Fix invalid HTTP referrer error when trying to delete a
|
||||
trackback from the frontend
|
||||
|
||||
|
Reference in New Issue
Block a user