Skip to content
This repository has been archived by the owner on Apr 29, 2019. It is now read-only.

Commit

Permalink
Use of parse_url PHP_URL_PATH variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pieter Cappelle committed Dec 30, 2017
1 parent 8cdf043 commit 53292d3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ public function move($fileName, $renameFileOff = false)
}

//only use filename (for URI with query parameters)
$parsedUrl = parse_url($url);
if ($parsedUrl['path']) {
$urlPathValues = explode('/', $parsedUrl['path']);
$parsedUrlPath = parse_url($url, PHP_URL_PATH);
if ($parsedUrlPath) {
$urlPathValues = explode('/', $parsedUrlPath);
if (!empty($urlPathValues)) {
$fileName = end($urlPathValues);
}
Expand Down

0 comments on commit 53292d3

Please sign in to comment.