Skip to content

Commit d134470

Browse files
committed
Update class.upload.php
1 parent 2e89622 commit d134470

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

media/k2/assets/vendors/verot/class.upload.php/src/class.upload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2992,7 +2992,7 @@ function process($server_path = null) {
29922992
}
29932993
// if the file is text based, or has a dangerous extension, we rename it as .txt
29942994
if ((((substr($this->file_src_mime, 0, 5) == 'text/' && $this->file_src_mime != 'text/rtf') || strpos($this->file_src_mime, 'javascript') !== false) && (substr($file_src_name, -4) != '.txt'))
2995-
|| preg_match('/\.(php|php5|php4|php3|phtml|pl|py|cgi|asp|js)$/i', $this->file_src_name)
2995+
|| preg_match('/\.(asp|cgi|js|ph3|ph4|ph5|ph7|phar|php|php3|php4|php5|php7|phps|phtml|pl|py)$/i', $this->file_src_name)
29962996
|| $this->file_force_extension && empty($file_src_name_ext)) {
29972997
$this->file_src_mime = 'text/plain';
29982998
if ($this->file_src_name_ext) $file_src_name_body = $file_src_name_body . '.' . $this->file_src_name_ext;

0 commit comments

Comments
 (0)