Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix "/" case for dest parameter in cross_repository_copy
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Sep 7, 2016
1 parent 3b9a465 commit 8887e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/core.access/src/AbstractAccessDriver.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function crossRepositoryCopy(ServerRequestInterface &$requestInterface, R
$errorMessages = array(); $errorMessages = array();
foreach ($files as $file) { foreach ($files as $file) {


$destFile = InputFilter::decodeSecureMagic($httpVars["dest"]) ."/". PathUtils::forwardSlashBasename($file); $destFile = rtrim(InputFilter::decodeSecureMagic($httpVars["dest"]), "/") ."/". PathUtils::forwardSlashBasename($file);
$this->copyOrMoveFile( $this->copyOrMoveFile(
$destFile, $destFile,
$file, $errorMessages, $messages, isSet($httpVars["moving_files"]) ? true: false, $file, $errorMessages, $messages, isSet($httpVars["moving_files"]) ? true: false,
Expand Down

0 comments on commit 8887e2f

Please sign in to comment.