Skip to content
Snippets Groups Projects
Commit 190c9058 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #31887: escape html sensitive chars in url

parent 7b508a41
Branches
Tags
4 merge requests!1267Master,!1231Master,!1230Hotline master,!1227Hotline#31887 l extension de recherche vers gallica ne fonctionne pas
- ticket #31887 : Correction de la prise en charge de l'extension de recherche vers Gallica
\ No newline at end of file
......@@ -60,8 +60,9 @@ class ZendAfi_View_Helper_TagSearchExtension extends ZendAfi_View_Helper_BaseHel
if (!$site_url || !$site_label)
return null;
$url = $this->_injectSearchTerm($site_url);
return $this->_tag('span',
$this->view->tagAnchor($this->_injectSearchTerm($site_url),
$this->view->tagAnchor($this->view->escape($url),
$site_label));
}
......
......@@ -148,7 +148,7 @@ class RechercheControllerSearchExtensionEnabledTest
/** @test */
public function gallicaLinkShouldBeRendered() {
$this->assertXPathContentContains('//a[contains(@href, "gallica all ")]',
$this->assertXPathContentContains('//a[contains(@href, "gallica all ")][contains(@href, "sport")]',
'Gallica');
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment