madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22351: LJSUP-12756: Uninitialized value in conc...

Committer: sbelyaev
LJSUP-12756: Uninitialized value in concatenation (.) or string at HeadContent.pm line 156.
U   trunk/cgi-bin/LJ/S2/HeadContent.pm
Modified: trunk/cgi-bin/LJ/S2/HeadContent.pm
===================================================================
--- trunk/cgi-bin/LJ/S2/HeadContent.pm	2012-06-29 08:06:27 UTC (rev 22350)
+++ trunk/cgi-bin/LJ/S2/HeadContent.pm	2012-06-29 08:52:09 UTC (rev 22351)
@@ -153,17 +153,17 @@
         my %meta = %{ $opts->{entry_metadata} };
         $head_content .= qq(<meta property="og:title" name="title" );
         $head_content .= qq(content=");
-        $head_content .= LJ::ehtml( $meta{'title'} );
+        $head_content .= LJ::ehtml( $meta{'title'} ) || '';
         $head_content .= qq(" />\n);
 
         $head_content .= qq(<meta property="og:description" );
         $head_content .= qq(name="description" content=");
-        $head_content .= LJ::ehtml( $meta{'description'} );
+        $head_content .= LJ::ehtml( $meta{'description'} ) || '';
         $head_content .= qq(" />\n);
 
         $head_content .= qq(<meta property="og:image" );
         $head_content .= qq(content=");
-        $head_content .= LJ::ehtml( $meta{'image'} );
+        $head_content .= LJ::ehtml( $meta{'image'} ) || '';
         $head_content .= qq( " />\n);
     }
 

Tags: livejournal, madeon, pm, sbelyaev
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments