2heoh (2heoh) wrote in changelog,
2heoh
2heoh
changelog

[livejournal] r20524: LJSUP-10271: Add new blocks to non-cyr h...

Committer: slobin
LJSUP-10271: Add new blocks to non-cyr homepages and remove two widgets

M ljtextutil.pl
U   trunk/cgi-bin/ljtextutil.pl
Modified: trunk/cgi-bin/ljtextutil.pl
===================================================================
--- trunk/cgi-bin/ljtextutil.pl	2011-11-10 07:54:22 UTC (rev 20523)
+++ trunk/cgi-bin/ljtextutil.pl	2011-11-10 08:40:36 UTC (rev 20524)
@@ -977,7 +977,8 @@
 
     my @image_urls;
     my $p = HTML::TokeParser->new($htmlref);
-
+    return []
+        unless $p;
     while (my $token = $p->get_token) {
         if ($token->[1] eq 'img' and ref $token->[2] eq 'HASH') {
             my $attrs = $token->[2];

Tags: 2heoh, livejournal, pl, slobin
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