aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-12-05 15:17:25 +0100
committerAngelo Naselli <anaselli@linux.it>2014-12-05 15:17:25 +0100
commitdc6a5cf3933fb0fdcc338d803c618b7fc6436a27 (patch)
treed2b474ff81045072b6f6b2f6b6275c965381a26e /lib
parent777454f0b9980f90caa518ea24f7eaa991ed6a79 (diff)
downloadmanatools-dc6a5cf3933fb0fdcc338d803c618b7fc6436a27.tar
manatools-dc6a5cf3933fb0fdcc338d803c618b7fc6436a27.tar.gz
manatools-dc6a5cf3933fb0fdcc338d803c618b7fc6436a27.tar.bz2
manatools-dc6a5cf3933fb0fdcc338d803c618b7fc6436a27.tar.xz
manatools-dc6a5cf3933fb0fdcc338d803c618b7fc6436a27.zip
Really managed undefined value
Diffstat (limited to 'lib')
-rw-r--r--lib/AdminPanel/Rpmdragora/formatting.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/AdminPanel/Rpmdragora/formatting.pm b/lib/AdminPanel/Rpmdragora/formatting.pm
index c096c5f4..ef9c7b8a 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 = ('&' => '&amp;',
'<' => '&lt;',
@@ -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 = "";