summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-04-05 22:29:59 +0200
committerJonas Smedegaard <dr@jones.dk>2017-04-05 22:30:38 +0200
commit973fa319d36053111de343bcfa63adc7d3daae24 (patch)
treea4620b4f31ee8e1e304fb7a61672a07ad724638d
parent8e0b3c05a27f81dd3db458f8eaebf0fb648cfed9 (diff)
Fix charset in header.HEADmaster
-rwxr-xr-xindex.cgi2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.cgi b/index.cgi
index e437f22..05e3207 100755
--- a/index.cgi
+++ b/index.cgi
@@ -128,9 +128,11 @@ if ($form->submitted) {
));
}
+# fix charset in header
# strip div around checkbox field, to support contextually hiding next field
sub printhack {
$_ = shift;
+ s,charset=\Kiso\-8859\-1,utf-8,;
s,<div class="">,,g;
s,</div>\s*(?=<div class="eye color">),,s;
print $_;