Ignore:
Timestamp:
01/17/10 12:50:55 (2 years ago)
Author:
KennethLavrsen
Message:

Item2337: ATTACHFILESIZELIMIT check fails confusingly if value is "0 "
Merge fix from release branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/Handlers.pm

    r5817 r6066  
    785785        } 
    786786 
    787         my $maxSize = Foswiki::Func::getPreferencesValue('ATTACHFILESIZELIMIT'); 
     787        my $maxSize = 
     788          Foswiki::Func::getPreferencesValue('ATTACHFILESIZELIMIT') || 0; 
     789        $maxSize =~ s/\s+$//; 
    788790        $maxSize = 0 unless ( $maxSize =~ /([0-9]+)/o ); 
    789791 
Note: See TracChangeset for help on using the changeset viewer.