summaryrefslogtreecommitdiff
path: root/web/views/index.erb
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-02-11 10:24:52 +0100
committerJochen Topf <jochen@topf.org>2013-02-11 10:24:52 +0100
commitda1311e463ee6c27369be7e02a463114620c8a8f (patch)
tree2832f9b899187f9ead6ff5ff2f260a8d2ed44ac3 /web/views/index.erb
parentfbcfeb0b4b0ea030037976e648710ab3754f45ff (diff)
downloadtaginfo-da1311e463ee6c27369be7e02a463114620c8a8f.tar
taginfo-da1311e463ee6c27369be7e02a463114620c8a8f.tar.gz
More escaping... (Fixes https://trac.openstreetmap.org/ticket/4775)
Diffstat (limited to 'web/views/index.erb')
-rw-r--r--web/views/index.erb28
1 files changed, 14 insertions, 14 deletions
diff --git a/web/views/index.erb b/web/views/index.erb
index 80a872e..0c986df 100644
--- a/web/views/index.erb
+++ b/web/views/index.erb
@@ -1,17 +1,17 @@
<table class="boxes resize" width="100%">
<tr>
- <td width="232" height="40"><h2><a href="/keys"><%= t.osm.keys %></a></h2></td>
+ <td width="232" height="40"><h2><a href="/keys"><%= h(t.osm.keys) %></a></h2></td>
<td rowspan="6" width="20"></td>
- <td height="40"><h2><%= t.pages.index.popular_keys %></h2></td>
+ <td height="40"><h2><%= h(t.pages.index.popular_keys) %></h2></td>
<td rowspan="6" width="20"></td>
- <td width="232" height="40"><h2><a href="/reports"><%= t.taginfo.reports %></a></h2></td>
+ <td width="232" height="40"><h2><a href="/reports"><%= h(t.taginfo.reports) %></a></h2></td>
<td rowspan="6" width="20"></td>
- <td width="232" height="40"><h2><a href="/about"><%= t.taginfo.about %></a></h2></td>
+ <td width="232" height="40"><h2><a href="/about"><%= h(t.taginfo.about) %></a></h2></td>
</tr>
<tr>
<td class="box">
<div id="key_list"></div>
- <div class="emphasis" style="margin: 10px 0 0 0;"><a href="/keys"><%= t.pages.index.keys.listkeys %></a></div>
+ <div class="emphasis" style="margin: 10px 0 0 0;"><a href="/keys"><%= h(t.pages.index.keys.listkeys) %></a></div>
</td>
<td rowspan="5" class="box">
<div id="tagcloud" style="margin: 15px 0; line-height: 200%; text-align: justify; overflow: hidden;"></div>
@@ -20,37 +20,37 @@
<p><%= t.pages.reports.intro %></p>
<ul style="margin: 0 0 0 18px; padding: 0;">
<% Report.each_visible do |report| %>
- <li><a href="<%= report.url %>"><%= t.reports[report.name].name %></a></li>
+ <li><a href="<%= report.url %>"><%= h(t.reports[report.name].name) %></a></li>
<% end %>
</ul>
- <p class="emphasis" style="margin-top: 20px;"><a href="/reports"><%= t.pages.index.reports.listreports %></a></p>
+ <p class="emphasis" style="margin-top: 20px;"><a href="/reports"><%= h(t.pages.index.reports.listreports) %></a></p>
</td>
<td rowspan="3" class="box">
<%= t.pages.index.about.intro %>
- <p class="emphasis" style="margin-top: 20px;"><a href="/about"><%= t.pages.index.about.more %></a></p>
+ <p class="emphasis" style="margin-top: 20px;"><a href="/about"><%= h(t.pages.index.about.more) %></a></p>
</td>
</tr>
<tr>
- <td height="40"><h2><a href="/tags"><%= t.osm.tags %></a></h2></td>
+ <td height="40"><h2><a href="/tags"><%= h(t.osm.tags) %></a></h2></td>
</tr>
<tr>
<td class="box">
<div id="tag_list"></div>
- <div class="emphasis" style="margin: 10px 0 0 0;"><a href="/tags"><%= t.pages.index.tags.listtags %></a></div>
+ <div class="emphasis" style="margin: 10px 0 0 0;"><a href="/tags"><%= h(t.pages.index.tags.listtags) %></a></div>
</td>
</tr>
<tr>
- <td height="40"><h2><a href="/relations"><%= t.osm.relation_types %></a></h2></td>
- <td height="40"><h2><%= t.taginfo.international %></h2></td>
+ <td height="40"><h2><a href="/relations"><%= h(t.osm.relation_types) %></a></h2></td>
+ <td height="40"><h2><%= h(t.taginfo.international) %></h2></td>
</tr>
<tr>
<td class="box">
<div id="relation_list"></div>
- <div class="emphasis" style="margin: 10px 0 0 0;"><a href="/relations"><%= t.pages.index.relations.listrelations %></a></div>
+ <div class="emphasis" style="margin: 10px 0 0 0;"><a href="/relations"><%= h(t.pages.index.relations.listrelations) %></a></div>
</td>
<td class="box">
<p><%= TaginfoConfig.get('instance.description') %></p>
- <p class="emphasis" style="margin-top: 20px;"><a class="extlink" href="http://wiki.openstreetmap.org/wiki/Taginfo/Sites"><%= t.pages.index.international.see %></a></p>
+ <p class="emphasis" style="margin-top: 20px;"><a class="extlink" href="http://wiki.openstreetmap.org/wiki/Taginfo/Sites"><%= h(t.pages.index.international.see) %></a></p>
</td>
</tr>
</table>