aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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 = ('&' => '&',
'<' => '&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 = "";