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:
parent
9865f94e70
commit
b3c98adcfd
4 changed files with 5 additions and 4 deletions
|
@ -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
|
## 1.0.0 - 2017-03-15
|
||||||
### Added
|
### Added
|
||||||
|
|
Binary file not shown.
|
@ -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"
|
[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>
|
</description>
|
||||||
<version>1.0.0</version>
|
<version>1.0.1</version>
|
||||||
<licence>AGPL</licence>
|
<licence>AGPL</licence>
|
||||||
<author>Frank de Lange</author>
|
<author>Frank de Lange</author>
|
||||||
<documentation>
|
<documentation>
|
||||||
|
|
|
@ -129,7 +129,7 @@ class PageController extends Controller {
|
||||||
} else {
|
} else {
|
||||||
$filePath = $path;
|
$filePath = $path;
|
||||||
$fileId = $this->rootFolder->getUserFolder($this->userId)
|
$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()
|
->getFileInfo()
|
||||||
->getId();
|
->getId();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue