1
0
Fork 0
mirror of https://github.com/Yetangitu/owncloud-apps.git synced 2025-10-02 14:49:17 +02:00

files_reader: #35, Internal Server Error: fixed path resolution so app works when NC/OC hosted in subdirectory

This commit is contained in:
frankdelange 2017-03-19 18:21:23 +01:00
parent 9865f94e70
commit b3c98adcfd
4 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,6 @@
## UNRELEASED
###
## 1.0.1 - 2017-03-19
### Fixed
- #35: Internal Server Error: fixed path resolution so app works when NC/OC hosted in subdirectory
## 1.0.0 - 2017-03-15
### Added

Binary file not shown.

View file

@ -121,7 +121,7 @@ The same Android device showing a zoomed-in part of a page|![The same Android de
[SS18]: https://github.com/Yetangitu/owncloud-apps/blob/master/screenshots/photo_2017-03-15_18-28-56.jpg?raw=true "The same Android device showing a zoomed-in part of a page"
]]>
</description>
<version>1.0.0</version>
<version>1.0.1</version>
<licence>AGPL</licence>
<author>Frank de Lange</author>
<documentation>

View file

@ -129,7 +129,7 @@ class PageController extends Controller {
} else {
$filePath = $path;
$fileId = $this->rootFolder->getUserFolder($this->userId)
->get(explode("/", rawurldecode($this->request->get['file']),4)[3])
->get(preg_replace("/.*\/remote.php\/webdav(.*)/", "$1", rawurldecode($this->request->get['file'])))
->getFileInfo()
->getId();
}