aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-19 01:20:30 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-19 01:20:30 +0200
commit4b838fced8cd5fd2c24300e3f9132a1474051a76 (patch)
tree62be70f1da57b87c863f03eb9054056f9b841aa2 /t
parent7708b5f493bf3057af331624d29664ad17a87dbc (diff)
downloadcforum-4b838fced8cd5fd2c24300e3f9132a1474051a76.tar.gz
Implement URL decode and HTML escape functions
Diffstat (limited to 't')
-rw-r--r--t/newuser.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/newuser.t b/t/newuser.t
index a0a0dd9..e62fdc2 100644
--- a/t/newuser.t
+++ b/t/newuser.t
@@ -7,11 +7,11 @@
<table border="0">
<tr id="name">
<td><label for="name">Username</label></td>
- <td><input type="text" name="name" value="<% if(name) printf("%s", name); %>"></td>
+ <td><input type="text" name="name" value="<% if(name) printhtml(name); %>"></td>
</tr>
<tr id="full">
<td><label for="full">Full Name</label></td>
- <td><input type="text" name="full" value="<% if(full) printf("%s", full); %>"></td>
+ <td><input type="text" name="full" value="<% if(full) printhtml(full); %>"></td>
<td><small>(optional)</small></td>
</tr>
<tr id="pass">