Skip to content

Commit 53292d3

Browse files
author
Pieter Cappelle
committed
Use of parse_url PHP_URL_PATH variable.
1 parent 8cdf043 commit 53292d3

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import

1 file changed

+3
-3
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Uploader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ public function move($fileName, $renameFileOff = false)
162162
}
163163

164164
//only use filename (for URI with query parameters)
165-
$parsedUrl = parse_url($url);
166-
if ($parsedUrl['path']) {
167-
$urlPathValues = explode('/', $parsedUrl['path']);
165+
$parsedUrlPath = parse_url($url, PHP_URL_PATH);
166+
if ($parsedUrlPath) {
167+
$urlPathValues = explode('/', $parsedUrlPath);
168168
if (!empty($urlPathValues)) {
169169
$fileName = end($urlPathValues);
170170
}

0 commit comments

Comments
 (0)