[fix] make simple/result_templates/map.html more CSP compliant [1]

[1] https://github.com/searxng/searxng/issues/57

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2021-06-09 17:33:41 +02:00 committed by Noémi Ványi
parent eabdf1bae9
commit 42db73348a
2 changed files with 5 additions and 1 deletions

View File

@ -327,6 +327,10 @@ article.result-images[data-vim-selected]::before {
}
}
.hidden {
display: none !important;
}
.torrent_result {
border-left: 10px solid @color-result-torrent-border;
padding-left: 3px;

View File

@ -11,7 +11,7 @@
<th scope="row">{{ result.address_label or _('address') }}</th>
<td itemscope itemtype="http://schema.org/PostalAddress">
{%- if result.address.name -%}
<strong itemprop="name" style="display: none">{{ result.address.name }}</strong>
<strong itemprop="name" class="hidden">{{ result.address.name }}</strong>
{%- endif -%}
{% if result.address.road -%}
<span itemprop="streetAddress">