mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
check for prefixorgfilename in PROPFIND
This commit is contained in:
parent
c26a2beda1
commit
f440ffa224
|
@ -407,8 +407,17 @@ class HTTP_WebDAV_Server_SeedDMS extends HTTP_WebDAV_Server
|
||||||
$path .= $pathseg->getName().'/';
|
$path .= $pathseg->getName().'/';
|
||||||
// $info["path"] = htmlspecialchars($path.rawurlencode($obj->getName()));
|
// $info["path"] = htmlspecialchars($path.rawurlencode($obj->getName()));
|
||||||
if($this->useorgfilename) {
|
if($this->useorgfilename) {
|
||||||
$info["path"] = $path.$content->getOriginalFileName();
|
/* Add the document id and version to the display name.
|
||||||
$info["props"][] = $this->mkprop("displayname", $content->getOriginalFileName());
|
* I doesn't harm because for
|
||||||
|
* accessing the document the full path is used by the browser
|
||||||
|
*/
|
||||||
|
if($this->prefixorgfilename) {
|
||||||
|
$info["path"] = $path.$obj->getID()."-".$content->getVersion()."-".$content->getOriginalFileName();
|
||||||
|
$info["props"][] = $obj->getID()."-".$content->getVersion()."-".$content->getOriginalFileName();
|
||||||
|
} else {
|
||||||
|
$info["path"] = $path.$content->getOriginalFileName();
|
||||||
|
$info["props"][] = $this->mkprop("displayname", $content->getOriginalFileName());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$info["path"] = $path.$obj->getName();
|
$info["path"] = $path.$obj->getName();
|
||||||
$info["props"][] = $this->mkprop("displayname", $obj->getName());
|
$info["props"][] = $this->mkprop("displayname", $obj->getName());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user