1
0
Fork 0
forked from blallo/rss-bridge

urlencode keyword parameter

in order to handle non-trivial request keywords
This commit is contained in:
Ginko-Aloe 2016-01-19 18:04:35 +01:00
parent 33c6495333
commit 438a389286

View file

@ -134,7 +134,7 @@ class LeBonCoinBridge extends BridgeAbstract{
public function collectData(array $param){ public function collectData(array $param){
$html = ''; $html = '';
$link = 'http://www.leboncoin.fr/annonces/offres/' . $param['r'] . '/?f=a&th=1&q=' . $param['k']; $link = 'http://www.leboncoin.fr/annonces/offres/' . $param['r'] . '/?f=a&th=1&q=' . urlencode($param['k']);
$html = file_get_html($link) or $this->returnError('Could not request LeBonCoin.', 404); $html = file_get_html($link) or $this->returnError('Could not request LeBonCoin.', 404);
$list = $html->find('.list-lbc', 0); $list = $html->find('.list-lbc', 0);