summaryrefslogtreecommitdiff
path: root/httemplate/config
diff options
context:
space:
mode:
authorivan <ivan>2001-10-24 15:45:29 +0000
committerivan <ivan>2001-10-24 15:45:29 +0000
commit4308bf79cf9f31b6ec471788c34cde9b92a3c29b (patch)
treecded71c0035d754411891d0883ee6ca861159350 /httemplate/config
parente6b57805f6b3e76448ab9b6d280f2c53bc1410f3 (diff)
correct for browser munching
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);
}