From: Michal Vaner Date: Mon, 13 Oct 2008 19:44:26 +0000 (+0200) Subject: Multilines in admin mode X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=2f8fcd63c59f0f1ff8379bef2b41b66473e58361;p=pciids.git Multilines in admin mode --- diff --git a/PciIds/Html/Admin.pm b/PciIds/Html/Admin.pm index 8f344ec..6b90c7c 100644 --- a/PciIds/Html/Admin.pm +++ b/PciIds/Html/Admin.pm @@ -31,8 +31,10 @@ use Apache2::Const qw(:common :http); sub safeEncode( $ ) { my( $text ) = @_; - return encode( $text ) if defined $text; - return ''; + return '' unless defined $text; + $text = encode( $text ); + $text =~ s/\n/
/s; + return $text; } sub mailEncode( $$ ) {