Skip to content
Snippets Groups Projects
  • Rob Swindell's avatar
    6eec2e47
    Insure that the max (uploaded) filename limit is in the range 8-65535 characters · 6eec2e47
    Rob Swindell authored
    Upgrading fromm v3.19 can result in a setting of filename_maxlen=0 in file.ini, so let's
    put a special check in place to insure this can't happen (thus preventing any file
    uploads). I chose '8' as a kind of arbitrary minimum maximum value (MS-DOS filenames
    maxed out at 12 characters), but at least 0 won't be possibly any longer.
    
    As reported on DOVE-Net by Codefenix and confirmed by xbit.
    6eec2e47
    History
    Insure that the max (uploaded) filename limit is in the range 8-65535 characters
    Rob Swindell authored
    Upgrading fromm v3.19 can result in a setting of filename_maxlen=0 in file.ini, so let's
    put a special check in place to insure this can't happen (thus preventing any file
    uploads). I chose '8' as a kind of arbitrary minimum maximum value (MS-DOS filenames
    maxed out at 12 characters), but at least 0 won't be possibly any longer.
    
    As reported on DOVE-Net by Codefenix and confirmed by xbit.