Skip to content

Commit

Permalink
Space needs to be encoded to allow multi-seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
tegansnyder committed Aug 8, 2017
1 parent 7625dad commit fdcda34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Api/Crawl.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ public function buildUrl()

// Add seeds
if (!empty($this->seeds)) {
$url .= '&seeds=' . implode(' ', array_map(function ($item) {
$url .= '&seeds=' . implode('%20', array_map(function ($item) {
return urlencode($item);
}, $this->seeds));
}
Expand Down Expand Up @@ -569,4 +569,4 @@ protected function getApiString()

return urlencode($this->api->buildUrl());
}
}
}

0 comments on commit fdcda34

Please sign in to comment.