From 1b6840d98e3a6ebf9ce3373b1e1482db9accde06 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Wed, 25 Mar 2020 21:43:12 +0100 Subject: [PATCH] Relax active content check for renaming. We don't need to check against the filename without extension, because it's only the extension that may be problematic. Signed-off-by: Thomas Hochstein --- include/functions_images.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions_images.inc.php b/include/functions_images.inc.php index ecd3fb9c..006ca698 100644 --- a/include/functions_images.inc.php +++ b/include/functions_images.inc.php @@ -2262,7 +2262,7 @@ function serendipity_renameFile($id, $newName, $path = null) { $newPath = $imgBase . $path . $newName . (empty($file['extension']) ? '' : '.' . $file['extension']); - if (serendipity_isActiveFile($newName) || serendipity_isActiveFile($newPath)) { + if (serendipity_isActiveFile($newPath)) { return sprintf(' ' . ERROR_FILE_FORBIDDEN . "\n", $newName); }