aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Fripost/Panel
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem.moulin@fripost.org>2013-01-29 21:47:51 +0100
committerGuilhem Moulin <guilhem.moulin@fripost.org>2013-01-29 23:08:37 +0100
commit0dbcef539b19bd4d50d4bbc904b32f53ebdcf102 (patch)
treea3aafafcc282e4bab6377602f0379be719d89f25 /lib/Fripost/Panel
parent465f8ed1b317afb1c7aefde04e53118a19be1a18 (diff)
HTML tags are not longer allowed in descriptions.
Diffstat (limited to 'lib/Fripost/Panel')
-rw-r--r--lib/Fripost/Panel/Interface.pm6
1 files changed, 4 insertions, 2 deletions
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'));