Skip to content

Commit

Permalink
Fixed issue #07989: Unable to upload PNG files in template editor
Browse files Browse the repository at this point in the history
Dev: test with lowercase for extension
  • Loading branch information
Shnoulle committed Jul 12, 2013
1 parent 7ba4df2 commit cdd660f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/templates.php
Expand Up @@ -244,7 +244,7 @@ public function uploadfile()
{
$uploadresult = $clang->gT("This filename is not allowed to be uploaded.");
}
elseif(!in_array(substr(strrchr($filename, '.'),1),explode ( "," , $allowedtemplateuploads )))
elseif(!in_array(strtolower(substr(strrchr($filename, '.'),1)),explode ( "," , $allowedtemplateuploads )))
{

$uploadresult = $clang->gT("This file type is not allowed to be uploaded.");
Expand Down

0 comments on commit cdd660f

Please sign in to comment.