*/
public function downloadFamily($family) {
try {
- $response = $this->http->send(new Request('GET', $family.'/manifest.json'));
+ $response = $this->http->send(new Request('GET', \rawurlencode($family) . '/manifest.json'));
$manifest = JSON::decode($response->getBody());
$familyDirectory = dirname($this->getCssFilename($family));
throw new \InvalidArgumentException("Invalid filename '".$filename."' given.");
}
- $response = $this->http->send(new Request('GET', $family.'/'.$filename), [
+ $response = $this->http->send(new Request('GET', \rawurlencode($family) . '/' . \rawurlencode($filename)), [
// https://github.com/guzzle/guzzle/issues/2735
'sink' => \GuzzleHttp\Psr7\stream_for(fopen("php://temp", "w+")),
]);