Skip to content

Commit

Permalink
Fixed bug with double backslash in pull zone
Browse files Browse the repository at this point in the history
  • Loading branch information
sifex committed Jan 14, 2022
1 parent f579141 commit e0bb6b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BunnyCDNAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,6 @@ public function getUrl(string $path): string
throw new RuntimeException('In order to get a visible URL for a BunnyCDN object, you must pass the "pullzone_url" parameter to the BunnyCDNAdapter.');
}

return $this->pullzone_url.'/'.ltrim($path, '/');
return rtrim($this->pullzone_url, '/').'/'.ltrim($path, '/');
}
}

0 comments on commit e0bb6b9

Please sign in to comment.