Skip to content

Commit

Permalink
Fixed issue #13366: Extending a theme creates world writable directories
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Mar 5, 2018
1 parent 4c3c700 commit a53d5b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/themes.php
Expand Up @@ -499,7 +499,7 @@ public function templatecopy()

if ($mkdirresult == 1) {
// We just copy the while directory structure, but only the xml file
$oFileHelper->copyDirectory($copydirname, $newdirname, array('fileTypes' => array('xml', 'png', 'jpg')));
$oFileHelper->copyDirectory($copydirname, $newdirname, array('fileTypes' => array('xml', 'png', 'jpg'), 'newDirMode' => 0755, 'newFileMode' => 0644 ));
//TemplateConfiguration::removeAllNodes($newdirname);
TemplateManifest::extendsConfig($copydir, $newname);
TemplateManifest::importManifest($newname, ['extends' => $copydir]);
Expand Down

0 comments on commit a53d5b1

Please sign in to comment.