2ccb43a271
The renaming code added a dot '.' to the filename on disk even if the file hat no extension. Therefore, the file name on disk was different from the name in the database, triggering the database purging code on the next ML display. (serendipity_displayImageList() will delete files from the database that don't exist any longer on disk.) This code won't add spurious dots for empty extensions, keeping disk and database in sync. Signed-off-by: Thomas Hochstein <thh@inter.net>