|
@@ 167-170 (lines=4) @@
|
| 164 |
|
$originalSharePath = $this->getPath($token); |
| 165 |
|
|
| 166 |
|
// Share is password protected - check whether the user is permitted to access the share |
| 167 |
|
if (isset($linkItem['share_with']) && !Helper::authenticate($linkItem)) { |
| 168 |
|
return new RedirectResponse($this->urlGenerator->linkToRoute('files_sharing.sharecontroller.authenticate', |
| 169 |
|
array('token' => $token))); |
| 170 |
|
} |
| 171 |
|
|
| 172 |
|
if (Filesystem::isReadable($originalSharePath . $path)) { |
| 173 |
|
$getPath = Filesystem::normalizePath($path); |
|
@@ 246-251 (lines=6) @@
|
| 243 |
|
$linkItem = OCP\Share::getShareByToken($token, false); |
| 244 |
|
|
| 245 |
|
// Share is password protected - check whether the user is permitted to access the share |
| 246 |
|
if (isset($linkItem['share_with'])) { |
| 247 |
|
if(!Helper::authenticate($linkItem)) { |
| 248 |
|
return new RedirectResponse($this->urlGenerator->linkToRoute('files_sharing.sharecontroller.authenticate', |
| 249 |
|
array('token' => $token))); |
| 250 |
|
} |
| 251 |
|
} |
| 252 |
|
|
| 253 |
|
$files_list = null; |
| 254 |
|
if (!is_null($files)) { // download selected files |