We 404 on various pages of an openid's journal, but we don't want to 
return a 404 for resources such as stylesheets.

        Patch by fu. 

diffs (13 lines):

diff -r 4620690370e7 -r 5a7cd60253f0 cgi-bin/LJ/User.pm
--- a/cgi-bin/LJ/User.pm        Fri Jul 30 06:43:15 2010 -0700
+++ b/cgi-bin/LJ/User.pm        Fri Jul 30 06:53:43 2010 -0700
@@ -8683,7 +8683,8 @@ sub make_journal {
 
     # FIXME: pretty this up at some point, to maybe auto-redirect to
     # the external URL or something, but let's just do this for now
-    if ( $u->is_identity && $view ne "read" ) {
+    # res is a resource, such as an external stylesheet
+    if ( $u->is_identity && ! ( $view eq "read" || $view eq "res" ) ) {
         my $location = $u->openid_identity;
         my $warning = BML::ml( 'error.nojournal.openid', { aopts => 
"href='$location'", id => $location } );
         return $error->( $warning, "404 Not here" );
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to