summaryrefslogtreecommitdiff
path: root/httemplate/config
diff options
context:
space:
mode:
authorivan <ivan>2002-03-18 17:50:54 +0000
committerivan <ivan>2002-03-18 17:50:54 +0000
commitf7e1679114d88fcb8499aafb5386616c93a7c9ee (patch)
tree205b9f92d588613b54c79e8b792394a1a3f9d34e /httemplate/config
parentc6bc9049d8836fb3c362eb738f99ce238981fbcf (diff)
fixes bug#367 (yay, that one was annoying):
in config editor, initial newlines in <textarea>s are lost. even if you didn't mean to edit them you remove that..
Diffstat (limited to 'httemplate/config')
-rw-r--r--httemplate/config/config.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi
index 5013de0dc..4f19ee961 100644
--- a/httemplate/config/config.cgi
+++ b/httemplate/config/config.cgi
@@ -57,7 +57,7 @@ function SafeOnsubmit() {
<% if ( $type eq '' ) { %>
<font color="#ff0000">no type</font>
<% } elsif ( $type eq 'textarea' ) { %>
- <textarea name="<%= $i->key. $n %>" rows=5><%= join("\n", $conf->config($i->key) ) %></textarea>
+ <textarea name="<%= $i->key. $n %>" rows=5><%= "\n". join("\n", $conf->config($i->key) ) %></textarea>
<% } elsif ( $type eq 'checkbox' ) { %>
<input name="<%= $i->key. $n %>" type="checkbox" value="1"<%= $conf->exists($i->key) ? ' CHECKED' : '' %>>
<% } elsif ( $type eq 'text' ) { %>