mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-26 11:26:31 +03:00
Merge pull request #199 from Ginko-Aloe/patch-1
urlencode keyword parameter
This commit is contained in:
commit
787de0360c
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ class LeBonCoinBridge extends BridgeAbstract{
|
|||
public function collectData(array $param){
|
||||
|
||||
$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);
|
||||
|
||||
$list = $html->find('.list-lbc', 0);
|
||||
|
|
Loading…
Reference in a new issue