Add various FILTERs were required to keep the output valid HTML...

git-svn-id: svn://10.0.0.236/trunk@120260 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ian%hixie.ch
2002-04-30 00:23:07 +00:00
parent 759a7da243
commit 0f90df3b8e
3 changed files with 8 additions and 8 deletions

View File

@@ -5,11 +5,11 @@ TemplateToolkit
<p>Your password has been sent.</p>
<form >
<form action="" method="GET"> <!-- XXX POST -->
<p>
<input type="submit" value="Continue...">
[%- FOREACH key = pendingCommands.keys -%] [%- FOREACH value = pendingCommands.$key %]
<input type="hidden" name="[% key %]" value="[% value %]">
<input type="hidden" name="[% key | html %]" value="[% value | html %]">
[%- END -%] [%- END %]
</p>
</form>

View File

@@ -11,11 +11,11 @@ Content-Type: text/html
<title>[% app.name %][% IF title != app.name %]: [% title %][% END %]</title>
<link rel="stylesheet" href="style">
[% IF session.fields.settings.stylesheet != '' -%]
<link rel="stylesheet" href="[% session.fields.settings.stylesheet %]">
<link rel="stylesheet" href="[% session.fields.settings.stylesheet | uri | html %]">
[% END -%]
</head>
<body>
<h1>[% title %]</h1>
<h1>[% title | html %]</h1>
[%- IF session.adminMessage != '' %]
<p class="adminMessage">[% session.adminMessage %]</p>
<p class="adminMessage">[% session.adminMessage | html %]</p>
[% END -%]

View File

@@ -4,9 +4,9 @@ TemplateToolkit
<input type="hidden" name="command" value="loginSendPassword">
<select name="protocol">
[%- FOREACH protocol = contacts.sort %]
<option name="[% protocol %]">[% protocol %]</option>
<option name="[% protocol | html %]">[% protocol | html %]</option>
[%- END %]
</select>
<input type="text" name="address" value="">
<input type="hidden" name="loginPendingCommands" value="[% pendingCommands %]">
<input type="submit" value="[% buttonLabel %]">
<input type="hidden" name="loginPendingCommands" value="[% pendingCommands | html %]">
<input type="submit" value="[% buttonLabel | html %]">