diff options
author | Jordan <me@jordan.im> | 2019-09-02 17:49:33 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2019-09-02 17:49:33 -0700 |
commit | 0983cf45cd0494a80f7c9d16e75a240289165e56 (patch) | |
tree | b66c971154f2acefb812692fd7a8165cc8e0b16d /tor-metrics/templates/as.html | |
parent | d99797752b531fe9a36062ff49e59a10badebca1 (diff) | |
download | allium-0983cf45cd0494a80f7c9d16e75a240289165e56.tar.gz allium-0983cf45cd0494a80f7c9d16e75a240289165e56.zip |
ensure HTML safety of onionoo-provided strings
Diffstat (limited to 'tor-metrics/templates/as.html')
-rw-r--r-- | tor-metrics/templates/as.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tor-metrics/templates/as.html b/tor-metrics/templates/as.html index 6021dfa..8b7c93d 100644 --- a/tor-metrics/templates/as.html +++ b/tor-metrics/templates/as.html @@ -1,4 +1,4 @@ {% extends "relay-list.html" %} -{% block title %}Tor Relays :: {{ relays[0]['as'] }}{% endblock %} -{% block header %}<a href="../../">Home</a> :: {{ relays[0]['as'] }}{% endblock %} -{% block description %}{{ relays[0]['as'] }} ({{ relays[0]['as_name']}}) is responsible for ~{{ bandwidth }} MB/s of traffic.{% endblock %} +{% block title %}Tor Relays :: {{ relays[0]['as']|escape }}{% endblock %} +{% block header %}<a href="../../">Home</a> :: {{ relays[0]['as']|escape }}{% endblock %} +{% block description %}{{ relays[0]['as']|escape }} ({{ relays[0]['as_name']|escape }}) is responsible for ~{{ bandwidth }} MB/s of traffic.{% endblock %} |