diff --git a/include/functions_images.inc.php b/include/functions_images.inc.php index ecd3fb9c5..006ca698c 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); }