Committer: akanashin
LJSUP-13520: Can't see UserheadU 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; + } } }