Make sure the path passed to the activity manager is normalized
This commit is contained in:
parent
393deb5961
commit
3afcc71764
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue