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

Item2337: ATTACHFILESIZELIMIT check fails confusingly if value is "0 "
Easy and safe fix. I have double tested all combinations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Release01x00/WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin.pm

    r5749 r6065  
    947947        } 
    948948 
    949         my $maxSize = Foswiki::Func::getPreferencesValue('ATTACHFILESIZELIMIT'); 
     949        my $maxSize = 
     950          Foswiki::Func::getPreferencesValue('ATTACHFILESIZELIMIT') || 0; 
     951        $maxSize =~ s/\s+$//; 
    950952        $maxSize = 0 unless ( $maxSize =~ /([0-9]+)/o ); 
    951953 
Note: See TracChangeset for help on using the changeset viewer.