From 2f8fcd63c59f0f1ff8379bef2b41b66473e58361 Mon Sep 17 00:00:00 2001 From: Michal Vaner Date: Mon, 13 Oct 2008 21:44:26 +0200 Subject: [PATCH] Multilines in admin mode --- PciIds/Html/Admin.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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( $$ ) { -- 2.39.2