Skip to content

Commit

Permalink
#5507 Fix check for local file path
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Feb 12, 2020
1 parent 4272214 commit 957d926
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ function handleRevisionChildElement($node, $submission, $submissionFile) {
if (!filesize($temporaryFilename)) {
$errorFlag = true;
}
} elseif (substr($filesrc, 1, 1) === '/') {
} elseif (substr($filesrc, 0, 1) === '/') {
// local file (absolute path)
if (!copy($filesrc, $temporaryFilename)) {
$errorFlag = true;
Expand Down

0 comments on commit 957d926

Please sign in to comment.