From df9c651d38251da1afd7dea3542009cc40766dca Mon Sep 17 00:00:00 2001 From: c12simple Date: Mon, 8 Sep 2014 11:36:25 +0200 Subject: [PATCH] Update class.EncfsMounter.php Set readonly on encrypted folder before decrypt action --- core/src/plugins/cypher.encfs/class.EncfsMounter.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/plugins/cypher.encfs/class.EncfsMounter.php b/core/src/plugins/cypher.encfs/class.EncfsMounter.php index ca3b76eaa3..c059f9c6a9 100644 --- a/core/src/plugins/cypher.encfs/class.EncfsMounter.php +++ b/core/src/plugins/cypher.encfs/class.EncfsMounter.php @@ -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)"); }