Skip to content

Commit

Permalink
Resolve favicon.ico, which is in dw-nonfree
Browse files Browse the repository at this point in the history
  • Loading branch information
afuna committed Sep 23, 2012
1 parent 0b83b9b commit 0e41ad8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cgi-bin/Apache/LiveJournal.pm
Expand Up @@ -672,7 +672,10 @@ sub trans

# if favicon, let filesystem handle it, for now, until
# we have per-user favicons.
return DECLINED if $uuri eq "/favicon.ico";
if ( $uuri eq "/favicon.ico" ) {
$r->filename( LJ::resolve_file( "htdocs/$uuri" ) );
return OK;
}

# see if there is a modular handler for this URI
my $ret = LJ::URI->handle($uuri, $r);
Expand Down Expand Up @@ -859,7 +862,11 @@ sub trans
} elsif ($func eq "journal") {

unless ($uri =~ m!^/(\w{1,25})(/.*)?$!) {
return DECLINED if $uri eq "/favicon.ico";
if ( $uri eq "/favicon.ico" ) {
$r->filename( LJ::resolve_file( "htdocs/$uri" ) );
return OK;
}

my $redir = LJ::Hooks::run_hook("journal_subdomain_redirect_url",
$host, $uri);
return redir($r, $redir) if $redir;
Expand Down

0 comments on commit 0e41ad8

Please sign in to comment.