diff options
| author | dalf <alex@al-f.net> | 2015-01-17 22:36:48 +0100 |
|---|---|---|
| committer | dalf <alex@al-f.net> | 2015-01-17 22:36:48 +0100 |
| commit | 9154cf7930029d20356de20b002e4b9741cce70a (patch) | |
| tree | 14ab65605e27eb49ea95a7eab39acd0d89a9f093 | |
| parent | b6d27aca590c034710544a982bca2b71abb878c5 (diff) | |
Proxify images inside infoboxes
| -rw-r--r-- | searx/templates/default/infobox.html | 2 | ||||
| -rw-r--r-- | searx/templates/oscar/infobox.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/searx/templates/default/infobox.html b/searx/templates/default/infobox.html index 1511cae06..50f5e098e 100644 --- a/searx/templates/default/infobox.html +++ b/searx/templates/default/infobox.html @@ -1,6 +1,6 @@ <div class="infobox"> <h2>{{ infobox.infobox }}</h2> - {% if infobox.img_src %}<img src="{{ infobox.img_src }}" title="{{ infobox.infobox|striptags }}" alt="{{ infobox.infobox|striptags }}" />{% endif %} + {% if infobox.img_src %}<img src="{{ image_proxify(infobox.img_src) }}" title="{{ infobox.infobox|striptags }}" alt="{{ infobox.infobox|striptags }}" />{% endif %} <p>{{ infobox.entity }}</p> <p>{{ infobox.content | safe }}</p> {% if infobox.attributes %} diff --git a/searx/templates/oscar/infobox.html b/searx/templates/oscar/infobox.html index f352cd09d..1aa2e5c11 100644 --- a/searx/templates/oscar/infobox.html +++ b/searx/templates/oscar/infobox.html @@ -3,7 +3,7 @@ <h4 class="panel-title">{{ infobox.infobox }}</h4> </div> <div class="panel-body"> - {% if infobox.img_src %}<img class="img-responsive center-block infobox_part" src="{{ infobox.img_src }}" alt="{{ infobox.infobox }}" />{% endif %} + {% if infobox.img_src %}<img class="img-responsive center-block infobox_part" src="{{ image_proxify(infobox.img_src) }}" alt="{{ infobox.infobox }}" />{% endif %} {% if infobox.content %}<p class="infobox_part">{{ infobox.content }}</p>{% endif %} {% if infobox.attributes %} |