Changeset 1907 for trunk


Ignore:
Timestamp:
Jun 1, 2011, 4:03:09 PM (8 years ago)
Author:
robert@…
Message:

Bugfix with uploaded files with less than 9 characters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/studycapturing/SimpleWizardController.groovy

    r1864 r1907  
    558558                if( filename == 'existing*' )
    559559                        filename = '';
    560                 else if( filename[0..8] == 'existing*' )
     560                else if( filename.size() > 9 && filename[0..8] == 'existing*' )
    561561                        filename = filename[9..-1]
    562562
Note: See TracChangeset for help on using the changeset viewer.