Skip to content

Commit 31a5ec3

Browse files
committed
#3570 - .phar to illegal filenames list
1 parent 5773de0 commit 31a5ec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: classes/filemanager.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ public function editor($file_id = null)
779779

780780
public function filenameIsIllegal($file_name)
781781
{
782-
if (preg_match('/(\.sh\.inc\.ini|\.htaccess|\.php|\.phtml|\.php[3-6])$/i', $file_name)) {
782+
if (preg_match('/(\.sh\.inc\.ini|\.htaccess|\.php|\.phar|\.phtml|\.php[3-6])$/i', $file_name)) {
783783
return true;
784784
} elseif (preg_match('/\.php\./i', $file_name)) {
785785
return true;

0 commit comments

Comments
 (0)