splittingred/Gallery — Issue #164: Space at the end of the 'name' 
Author: mregan
Created: 2012-01-12 04:30:12+00:00
State: open

I found a trailing space in the 'Name' field of the file was causing a problem manually advancing to the 'Next' thumbnail, although the slide show worked properly. This happened on new file uploads and on updates in the Gallery Manager.

I added the following code to the /core/components/gallery/processors/mgr/item/update.php and /core/components/gallery/processors/mgr/item/upload.php :

if (isset($scriptProperties['name'])) {
$name = $scriptProperties['name'];
$scriptProperties['name'] = trim($name);
}

Probably not the best place to add the code, but it worked and shouldn't affect anything else.