From cdfb4b7ff9829cb9048b573f7f1775dc8029f75a Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 16 May 2021 13:16:44 +0200 Subject: [fix] make /stats more CSP compliant - bar graph Replace bar graph's *styles* (see below) by CSP compliant implementation in ``searx/static/themes/__common__/less/stats.less`` :: ./simple/stats.html:49: {{- "" -}} ./simple/stats.html:57: {{- "" -}} ./simple/stats.html:58: {{- "" -}} ./oscar/stats.html:50: {{- "" -}} ./oscar/stats.html:58: {{- "" -}} ./oscar/stats.html:59: {{- "" -}} Reported-by: https://github.com/searxng/searxng/issues/57 Signed-off-by: Markus Heiser --- searx/templates/oscar/stats.html | 18 +++++++++--------- searx/templates/simple/stats.html | 20 +++++++++++--------- 2 files changed, 20 insertions(+), 18 deletions(-) (limited to 'searx/templates') diff --git a/searx/templates/oscar/stats.html b/searx/templates/oscar/stats.html index 49c776ea8..8b57e39b6 100644 --- a/searx/templates/oscar/stats.html +++ b/searx/templates/oscar/stats.html @@ -45,19 +45,19 @@ {%- if engine_stat.result_count -%} - {{- engine_stat.result_count | int -}}{{- "" -}} - +
{{- engine_stat.result_count | int -}}
{{- "" -}} + {%- endif -%} {%- if engine_stat.total -%} - {{- engine_stat.total | round(1) -}}{{- "" -}} - {{- "" -}} +
{{- engine_stat.total | round(1) -}}
{{- "" -}} +