From 94d2ebec0ac494d16044e078c8c7976d5325c247 Mon Sep 17 00:00:00 2001 From: JeremyRand Date: Wed, 1 Feb 2017 00:58:05 +0000 Subject: [PATCH] [DuckDuckGoBridge] Disable DuckDuckGo redirects so that the links returned are correct. --- bridges/DuckDuckGoBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/DuckDuckGoBridge.php b/bridges/DuckDuckGoBridge.php index 2bd4578..89c665b 100644 --- a/bridges/DuckDuckGoBridge.php +++ b/bridges/DuckDuckGoBridge.php @@ -27,7 +27,7 @@ class DuckDuckGoBridge extends BridgeAbstract{ )); public function collectData(){ - $html = getSimpleHTMLDOM(self::URI.'html/?q='.$this->getInput('u').$this->getInput('sort')) + $html = getSimpleHTMLDOM(self::URI.'html/?kd=-1&q='.$this->getInput('u').$this->getInput('sort')) or returnServerError('Could not request DuckDuckGo.'); foreach($html->find('div.results_links') as $element) {