From 13a2880fa0d27298f8032ccf596d0eedb5ab6797 Mon Sep 17 00:00:00 2001 From: Nick Daly Date: Thu, 28 Jun 2012 00:33:10 -0500 Subject: [PATCH] Properly escape output to prevent XSS. --- .../https/templates/html/consumedHost.tmpl | 10 ++++++++-- .../https/templates/html/consumedService.tmpl | 13 ++++++++++--- .../protocols/https/templates/html/consuming.tmpl | 2 ++ .../https/templates/html/hostedClient.tmpl | 3 +++ .../https/templates/html/hostedService.tmpl | 4 ++++ .../protocols/https/templates/html/hosting.tmpl | 2 ++ 6 files changed, 29 insertions(+), 5 deletions(-) diff --git a/ugly_hacks/santiago/protocols/https/templates/html/consumedHost.tmpl b/ugly_hacks/santiago/protocols/https/templates/html/consumedHost.tmpl index 948a51305..a07b64d4d 100644 --- a/ugly_hacks/santiago/protocols/https/templates/html/consumedHost.tmpl +++ b/ugly_hacks/santiago/protocols/https/templates/html/consumedHost.tmpl @@ -1,3 +1,5 @@ +#import cgi +#set $host = $cgi.escape($host) -

You are consuming services from $host:

+

You are consuming services from + $host:

#if $services