Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Update class.EncfsMounter.php
Browse files Browse the repository at this point in the history
Set readonly on encrypted folder before decrypt action
  • Loading branch information
c12simple committed Sep 8, 2014
1 parent 2e548ff commit df9c651
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/plugins/cypher.encfs/class.EncfsMounter.php
Expand Up @@ -156,9 +156,11 @@ public function filterENCFS(&$ajxpNode, $parentNode = false, $details = false)
$ajxpNode->ENCFS_clear_folder = true;
$ajxpNode->overlay_icon = "cypher.encfs/overlay_ICON_SIZE.png";
$ajxpNode->overlay_class = "icon-lock";
$ajxpNode->__set("ajxp_readonly", "true");
if (is_file($ajxpNode->getUrl()."/.ajxp_mount")) {
$ajxpNode->setLabel(substr($ajxpNode->getLabel(), strlen("ENCFS_CLEAR_")));
$ajxpNode->ENCFS_clear_folder_mounted = true;
$ajxpNode->__set("ajxp_readonly", "false");
} else {
$ajxpNode->setLabel(substr($ajxpNode->getLabel(), strlen("ENCFS_CLEAR_")) . " (encrypted)");
}
Expand Down

2 comments on commit df9c651

@cdujeu
Copy link
Member

@cdujeu cdujeu commented on df9c651 Sep 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@c12simple, you must user $ajxpNode->ajxp_readonly instead of calling $ajxpNode->__set() : this is a "magic" function, see http://fr2.php.net/__set, please correct this.

@c12simple
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank, It's done!

Please sign in to comment.