From 0dbcef539b19bd4d50d4bbc904b32f53ebdcf102 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 29 Jan 2013 21:47:51 +0100 Subject: HTML tags are not longer allowed in descriptions. --- lib/Fripost/Panel/Interface.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/Fripost/Panel') diff --git a/lib/Fripost/Panel/Interface.pm b/lib/Fripost/Panel/Interface.pm index b2ad686..675c9ba 100644 --- a/lib/Fripost/Panel/Interface.pm +++ b/lib/Fripost/Panel/Interface.pm @@ -349,7 +349,8 @@ sub AddLocal : Runmode { $template->param( transport => [ map { { item => $_ , name => ucfirst $_ - , selected => $q->param('transport') eq $_ + , selected => (defined $q->param('transport') and + $q->param('transport') eq $_) } } (keys %Fripost::Schema::Local::list_commands) ] ) @@ -422,7 +423,8 @@ sub EditLocal : Runmode { my $template = $self->load_tmpl( "edit-$t.html", cache => 1 ); $template->param( $self->userInfo , localpart => encode_entities($localname) - , domainpart => encode_entities($domainname) ); + , domainpart => encode_entities($domainname) + , name => encode_entities($name) ); $template->param( &fill_HTML_template_from_query ($q) ); my $news = (defined $q->param('submit') or (defined $q->param('a') and $q->param('a') eq 'delete')); -- cgit v1.2.3