holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r22823: LJSUP-13520: Can't see Userhead

Committer: akanashin
LJSUP-13520: Can't see Userhead
U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2012-09-06 12:05:25 UTC (rev 22822)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2012-09-06 12:11:08 UTC (rev 22823)
@@ -547,9 +547,11 @@
                     my $custom_userhead = $remote->custom_usericon;
                     require URI;
                     my $uri = URI->new ($custom_userhead);
-                    my $res = send_files ($uri->path);
-                    LJ::Request->content_type ('image/gif');
-                    return ($res == LJ::Request::OK) ? LJ::Request::DONE : $res;
+                    if ($uri) {
+                        my $res = send_files ($uri->path);
+                        LJ::Request->content_type ('image/gif');
+                        return ($res == LJ::Request::OK) ? LJ::Request::DONE : $res;
+                    }
                 }
             }
 

Tags: akanashin, holyandrew, livejournal, pm
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