From 957d926b7c1d5066de141085b7da8b0c88d4287e Mon Sep 17 00:00:00 2001 From: Alec Smecher Date: Wed, 12 Feb 2020 10:45:23 -0800 Subject: [PATCH] pkp/pkp-lib#5507 Fix check for local file path --- .../native/filter/NativeXmlSubmissionFileFilter.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/importexport/native/filter/NativeXmlSubmissionFileFilter.inc.php b/plugins/importexport/native/filter/NativeXmlSubmissionFileFilter.inc.php index b57dfd44926..cf31ed6e87f 100644 --- a/plugins/importexport/native/filter/NativeXmlSubmissionFileFilter.inc.php +++ b/plugins/importexport/native/filter/NativeXmlSubmissionFileFilter.inc.php @@ -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;