Permalink
Browse files

Fix "/" case for dest parameter in cross_repository_copy

  • Loading branch information...
1 parent 3b9a465 commit 8887e2f29e4de035a6a0cbc999b07ccc2150b280 @cdujeu cdujeu committed Sep 7, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/plugins/core.access/src/AbstractAccessDriver.php
@@ -196,7 +196,7 @@ public function crossRepositoryCopy(ServerRequestInterface &$requestInterface, R
$errorMessages = array();
foreach ($files as $file) {
- $destFile = InputFilter::decodeSecureMagic($httpVars["dest"]) ."/". PathUtils::forwardSlashBasename($file);
+ $destFile = rtrim(InputFilter::decodeSecureMagic($httpVars["dest"]), "/") ."/". PathUtils::forwardSlashBasename($file);
$this->copyOrMoveFile(
$destFile,
$file, $errorMessages, $messages, isSet($httpVars["moving_files"]) ? true: false,

0 comments on commit 8887e2f

Please sign in to comment.