George S. Baugh 3 jaren geleden
bovenliggende
commit
5f0cdcabf8
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      bin/favicon_mongler.pl
  2. 1 1
      lib/Trog/Routes/HTML.pm

+ 1 - 1
bin/favicon_mongler.pl

@@ -20,7 +20,7 @@ my %files = (
 );
 foreach my $size ( sort { $b <=> $a } keys(%files) ) {
     print "*** Generating ${size}x${size} .$files{$size} now... ***\n";
-    my @cmd = ( $bin, '-w', $size, '-h', $size, $icon, '-o', "$dir/favicon-$size.$files{$size}" );
+    my @cmd = ( $bin, '-w', $size, '-h', $size, $icon, '-e', "$dir/favicon-$size.$files{$size}" );
     system(@cmd) && die "Failed to run @cmd: $!";
     print "*** Wrote $dir/favicon-$size.$files{$size} ***\n\n";
 }

+ 1 - 1
lib/Trog/Routes/HTML.pm

@@ -1060,7 +1060,7 @@ sub sitemap ($query) {
                     }] if $url->{is_image};
 
                     # Truncate descriptions
-                    my $desc = substr($url->{data},0,2048);
+                    my $desc = substr($url->{data},0,2048) || '';
                     $desc //= '';
                     $out{videos} = [{
                         content_loc   => "http://$query->{domain}$url->{href}",