Skip to content

Commit

Permalink
Merge pull request #56 from tegansnyder/master
Browse files Browse the repository at this point in the history
Space needs to be encoded to allow multi-seeds
  • Loading branch information
Swader authored Aug 8, 2017
2 parents 7625dad + fdcda34 commit 5d36a1e
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 5d36a1e

Please sign in to comment.