Skip to content

Commit

Permalink
Merge pull request #12 from Sennik/patch-1
Browse files Browse the repository at this point in the history
Update GlideImage.php
  • Loading branch information
freekmurze committed Mar 16, 2015
2 parents b67a802 + e4719a2 commit 0156d54
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Spatie/Glide/GlideImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ public function modify($modificationParameters)
public function getURL()
{
$urlBuilder = UrlBuilderFactory::create($this->baseURL, $this->signKey);

return $urlBuilder->getUrl(rawurlencode($this->imagePath), $this->modificationParameters);

$encodedPath = implode('/', array_map('rawurlencode', explode('/', $this->imagePath)));
return $urlBuilder->getUrl($encodedPath, $this->modificationParameters);
}

/**
Expand Down

0 comments on commit 0156d54

Please sign in to comment.