Skip to content

Commit d0088ab

Browse files
committed
$escape parameter must be passed when calling str_getcsv()
1 parent bd067ff commit d0088ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Provider/OnlineRates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ private function loadFromOnline(): array
137137
{
138138
$response = $this->client->get($this->config->getFeedUrl());
139139
$contents = (string) $response->getBody();
140-
$rows = array_map(fn ($data) => str_getcsv($data, ''), explode("\n", $contents));
140+
$rows = array_map(fn ($data) => str_getcsv($data, ',', '"', ''), explode("\n", $contents));
141141
$headerRow = array_shift($rows);
142142
$this->validateHeaderRow($headerRow);
143143
$rates = [];

0 commit comments

Comments
 (0)