summaryrefslogtreecommitdiff
path: root/httemplate/config
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/config')
-rw-r--r--httemplate/config/config-process.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/config/config-process.cgi b/httemplate/config/config-process.cgi
index 2dc4647ee..99957ebd9 100644
--- a/httemplate/config/config-process.cgi
+++ b/httemplate/config/config-process.cgi
@@ -11,7 +11,9 @@
if ( $type eq '' ) {
} elsif ( $type eq 'textarea' ) {
if ( $cgi->param($i->key. $n) ) {
- $conf->set($i->key, $cgi->param($i->key. $n));
+ my $value = $cgi->param($i->key. $n);
+ $value =~ s/\r\n/\n/g; #browsers?
+ $conf->set($i->key, $value);
} else {
$conf->delete($i->key);
}