X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=138ec4737069c8eb1bca5dcf8f362fef25fad8eb;hb=e8dc13cd1af07846cd3015986f3a3fd34cdcdaea;hp=09e535b2f5e407bcbc27435776b1dd8322a3ec2e;hpb=e6b57805f6b3e76448ab9b6d280f2c53bc1410f3;p=freeside.git diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index 09e535b2f..138ec4737 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -1,12 +1,13 @@ + <%= header('View Configuration', menubar( 'Main Menu' => $p, 'Edit Configuration' => 'config.cgi' ) ) %> <% my $conf = new FS::Conf; my @config_items = $conf->config_items; %> <% foreach my $section ( qw(required billing username password UI session - apache BIND shell + shell mail radius apache BIND ), - '', 'depreciated') { %> + '', 'deprecated') { %> <%= table("#cccccc", 2) %> @@ -25,11 +26,13 @@ no type <% } elsif ( $type eq 'textarea' ) { %> -
<%= join("\n", $conf->config($i->key) ) %>
+
+<%= encode_entities(join("\n", $conf->config($i->key) ) ) %>
+
<% } elsif ( $type eq 'checkbox' ) { %> YES' : 'ff0000">NO' %> - <% } elsif ( $type eq 'text' ) { %> + <% } elsif ( $type eq 'text' || $type eq 'select' ) { %> <%= $conf->exists($i->key) ? $conf->config($i->key) : '' %> <% } else { %>