Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Mar 10, 2022
1 parent ac06f18 commit 2424529
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/MicroweberPackages/App/functions/plupload.php
Expand Up @@ -149,13 +149,15 @@
$is_ext = strtolower($is_ext);

switch ($is_ext) {
case 'phtml':
case 'php':
case 'php12':
case 'php11':
case 'php10':
case 'php9':
case 'php8':
case 'php7':
case 'php6':
case 'php5':
case 'php4':
case 'php3':
Expand Down
2 changes: 2 additions & 0 deletions src/MicroweberPackages/Utils/System/Files.php
Expand Up @@ -563,8 +563,10 @@ function get_dangerous_files_extentions()


$dangerous = array(
'phtml',
'php',
'php5',
'php6',
'php7',
'php72',
'php73',
Expand Down
2 changes: 0 additions & 2 deletions src/MicroweberPackages/Utils/Zip/Unzip.php
Expand Up @@ -159,8 +159,6 @@ public function extract($zip_file, $target_dir = null, $preserve_filepath = true
$resp = array('error' => 'Error with the unzip! Desitnation path is not writable.');

return $resp;

return false;
}

// Apply chmod if configured to do so
Expand Down

0 comments on commit 2424529

Please sign in to comment.