diff --git a/editor/elfinder/php/connector.php b/editor/elfinder/php/connector.php index 986a67eb9f..fbeb975efa 100644 --- a/editor/elfinder/php/connector.php +++ b/editor/elfinder/php/connector.php @@ -101,7 +101,7 @@ function sanitizeName($cmd, $result, $args, $elfinder) 'uploadDeny' => array('text/x-php','application/x-php'), 'attributes' => array( array( // hide readmes - 'pattern' => '/\.(txt|html|php|php5|php*|py|pl|sh|xml)$/i', + 'pattern' => '/(readme\.txt)|\.(html|php|php5|php*|py|pl|sh)$/i', 'read' => false, 'write' => false, 'locked' => true,