sunhater / kcfinder

KCFinder web file manager
http://kcfinder.sunhater.com
402 stars 209 forks source link

fix checking file path for empty type (for thumbnails to work) #141

Open Eccenux opened 8 years ago

Eccenux commented 8 years ago

Types config to reproduce problem:

    'types' => array(
        ''  =>  "*img",
    ),

With this config (at least on Windows) thumbnails will not appear in browser. This is because checkFilePath will fail due to difference in trailing / in $rPath vs $this->typeDir.