Code

templates/graphs: Encode all parts of the image URL.
authorSebastian Harl <sh@tokkee.org>
Thu, 14 May 2015 16:32:03 +0000 (18:32 +0200)
committerSebastian Harl <sh@tokkee.org>
Thu, 14 May 2015 16:32:03 +0000 (18:32 +0200)
templates/graphs.tmpl

index 6a1320128d0bc15a3557d39184bc034404e7631a..10cd23807a3b34a0e7a05ad286804193b346e2dd 100644 (file)
@@ -9,7 +9,7 @@
                       class="query" placeholder="Group by" />
        </form><br />
 {{if .Metrics}}
-       <img src="/graph/q{{urlquery .QueryOptions}}/{{.Metrics}}" border="0" />
+       <img src="/graph/q{{urlquery .QueryOptions}}/{{urlquery .Metrics}}" border="0" />
 {{end}}
        <p>&nbsp;</p>
 </section>