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

Commit

Permalink
Fix comparison issue for AJXP_METADATA_ALLUSERS value. Could lead to …
Browse files Browse the repository at this point in the history
…share metadata.
  • Loading branch information
cdujeu committed Mar 18, 2015
1 parent 5d93f1f commit bac79d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -99,7 +99,7 @@ public function removeMetadata($ajxpNode, $nameSpace, $private = false, $scope=A

public function retrieveMetadata($ajxpNode, $nameSpace, $private = false, $scope=AJXP_METADATA_SCOPE_REPOSITORY)
{
if($private == AJXP_METADATA_ALLUSERS){
if($private === AJXP_METADATA_ALLUSERS){
$userScope = AJXP_METADATA_ALLUSERS;
}else if($private === true){
$userScope = $this->getUserId($ajxpNode);
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/metastore.xattr/class.xAttrMetaStore.php
Expand Up @@ -119,7 +119,7 @@ public function retrieveMetadata($ajxpNode, $nameSpace, $private = false, $scope
//throw new Exception("Filesystem does not support Extended Attributes!");
return array();
}
if($private == AJXP_METADATA_ALLUSERS){
if($private === AJXP_METADATA_ALLUSERS){
$startKey = $this->getMetaKey($nameSpace, $scope, "");
$arrMeta = array();
$keyList = xattr_list($path);
Expand Down

0 comments on commit bac79d4

Please sign in to comment.