Make sure the path passed to the activity manager is normalized

This commit is contained in:
Robin Appelman 2014-12-22 15:04:59 +01:00 committed by Bjoern Schiessle
parent 393deb5961
commit 3afcc71764
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ class ShareController extends Controller {
if (isset($originalSharePath) && Filesystem::isReadable($originalSharePath . $path)) {
$getPath = Filesystem::normalizePath($path);
$originalSharePath .= $getPath;
$originalSharePath = Filesystem::normalizePath($originalSharePath . $getPath);
$type = \OC\Files\Filesystem::is_dir($originalSharePath) ? 'folder' : 'file';
$args = $type === 'folder' ? array('dir' => $originalSharePath) : array('dir' => dirname($originalSharePath), 'scrollto' => basename($originalSharePath));
$linkToFile = \OCP\Util::linkToAbsolute('files', 'index.php', $args);