@@ -62,6 +62,7 @@ |
||
62 | 62 | * @param string $serverHost |
63 | 63 | * @param string $guestDisplayname |
64 | 64 | * @param int $templateDestination |
65 | + * @param string $share |
|
65 | 66 | * @return Wopi |
66 | 67 | */ |
67 | 68 | public function generateFileToken($fileId, $owner, $editor, $version, $updatable, $serverHost, $guestDisplayname, $templateDestination = 0, $hideDownload = false, $direct = false, $isRemoteToken = false, $templateId = 0, $share = null) { |
@@ -171,6 +171,9 @@ |
||
171 | 171 | } |
172 | 172 | } |
173 | 173 | |
174 | + /** |
|
175 | + * @param string $filepath |
|
176 | + */ |
|
174 | 177 | private function mb_pathinfo($filepath) { |
175 | 178 | $result = []; |
176 | 179 | preg_match('%^(.*?)[\\\\/]*(([^/\\\\]*?)(\.([^\.\\\\/]+?)|))[\\\\/\.]*$%im', ltrim('/' . $filepath), $matches); |