From dc6a5cf3933fb0fdcc338d803c618b7fc6436a27 Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Fri, 5 Dec 2014 15:17:25 +0100 Subject: Really managed undefined value --- lib/AdminPanel/Rpmdragora/formatting.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/AdminPanel/Rpmdragora') diff --git a/lib/AdminPanel/Rpmdragora/formatting.pm b/lib/AdminPanel/Rpmdragora/formatting.pm index c096c5f..ef9c7b8 100644 --- a/lib/AdminPanel/Rpmdragora/formatting.pm +++ b/lib/AdminPanel/Rpmdragora/formatting.pm @@ -58,7 +58,7 @@ my $loc = AdminPanel::rpmdragora::locale(); sub escape_text_for_TextView_markup_format { my ($str) = @_; - return '?-?-?' unless ref $str; + return '' if !$str; my %rules = ('&' => '&', '<' => '<', @@ -73,7 +73,7 @@ sub escape_text_for_TextView_markup_format { # from rpmtools, #37482: sub ensure_utf8 { - return '?-?-?' unless ref $_[0]; + return '' if !$_[0]; if (utf8::is_utf8($_[0])) { utf8::valid($_[0]) and return; @@ -88,7 +88,7 @@ sub ensure_utf8 { sub rpm_description { my ($description) = @_; - return '?-?-?' unless ref $description; + return '' if !$description; ensure_utf8($description); my $t = ""; -- cgit v1.2.1