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

Commit 5057146

Browse files
committed
Fix SchemeTranslatorWrapper. Store url instead of path when reading dir.
1 parent ae2eb99 commit 5057146

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

core/src/core/classes/class.AJXP_SchemeTranslatorWrapper.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function dir_opendir($path, $options)
9797
$newPath = AJXP_MetaStreamWrapper::translateScheme($path);
9898
$this->handle = opendir($newPath);
9999
if($this->handle !== false){
100-
$this->currentDirPath = parse_url($path, PHP_URL_PATH);
100+
$this->currentDirPath = $path;
101101
return true;
102102
}else{
103103
return false;
@@ -112,12 +112,7 @@ public function dir_opendir($path, $options)
112112
public function dir_readdir()
113113
{
114114
if(isSet($this->handle) && is_resource($this->handle)){
115-
$value = readdir($this->handle);
116-
if($this->currentDirPath."/".$value == "/inbox") {
117-
return ".";
118-
} else {
119-
return $value;
120-
}
115+
return readdir($this->handle);
121116
}
122117
return false;
123118
}

0 commit comments

Comments
 (0)