summaryrefslogtreecommitdiff
path: root/www/horde/patches/patch-ac
blob: 00026b16c8d17badd572f04417381aca985ee04a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$NetBSD: patch-ac,v 1.3 2006/06/16 09:23:21 adrianp Exp $

--- templates/problem/problem.inc.orig	2005-10-18 12:34:09.000000000 +0100
+++ templates/problem/problem.inc
@@ -31,17 +31,17 @@ function validate()
 
 <tr>
     <td class="light rightAlign"><?php echo _("Your Name") ?></td>
-    <td><input type="text" tabindex="1" name="name" value="<?php echo $name ?>" size="70" /></td>
+    <td><input type="text" tabindex="1" name="name" value="<?php echo htmlspecialchars($name) ?>" size="70" /></td>
 </tr>
 
 <tr>
     <td class="light rightAlign"><?php echo _("Your Email Address") ?></td>
-    <td><input type="text" tabindex="2" name="email" value="<?php echo $email ?>" size="70" /></td>
+    <td><input type="text" tabindex="2" name="email" value="<?php echo htmlspecialchars($email) ?>" size="70" /></td>
 </tr>
 
 <tr>
     <td class="light rightAlign"><?php echo _("Short Summary") ?></td>
-    <td><input type="text" tabindex="3" name="subject" value="<?php echo $subject ?>" size="70" /></td>
+    <td><input type="text" tabindex="3" name="subject" value="<?php echo htmlspecialchars($subject) ?>" size="70" /></td>
 </tr>
 
 <tr>
@@ -49,7 +49,7 @@ function validate()
 </tr>
 <tr>
     <td></td>
-    <td><textarea tabindex="4" name="message" rows="20" cols="80" wrap="hard"><?php echo $message ?></textarea></td>
+    <td><textarea tabindex="4" name="message" rows="20" cols="80" wrap="hard"><?php echo htmlspecialchars($message) ?></textarea></td>
 </tr>
 
 <tr>