From b7114c670a642ba97669690fb1782d57a5029aba Mon Sep 17 00:00:00 2001 From: "Florian Aders (EleRas)" Date: Thu, 23 Jun 2011 16:32:20 +0200 Subject: [PATCH] Allow .php5 - files to be edited as well, refs #819 Signed-off-by: Florian Aders (EleRas) --- webftp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webftp.php b/webftp.php index 9c6dc309..7aa11caa 100644 --- a/webftp.php +++ b/webftp.php @@ -23,7 +23,7 @@ $downloadDir = "/tmp/"; // Which file extensions indicate files allowed to be edited // Either simple extension or regex -$editFileExtensions = array("php[34]?$","sh$","txt$","[ps]?htm[l]?$","tpl$","pl","cgi","^ht[acespwd]+$"); +$editFileExtensions = array("php[345]?$","sh$","txt$","[ps]?htm[l]?$","tpl$","pl","cgi","^ht[acespwd]+$"); // Are files without extension allowed to be edited? $editFileNoExtension = true; // Which FTP - mode should be used by default? @@ -1004,4 +1004,4 @@ function parse_ftp_rawlist($list, $type = "UNIX") reset($files); } return $files; -} \ No newline at end of file +}