fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-07-08 07:46 am

[dw-free] Friendlier error message when a logged-in user tries to load an inaccessible entry

[commit: http://hg.dwscoalition.org/dw-free/rev/8b550c31bfbd]

http://bugs.dwscoalition.org/show_bug.cgi?id=2138

Handle protected reply page + unable to access.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/LJ/S2/ReplyPage.pm
--------------------------------------------------------------------------------
diff -r 29d54e1e6015 -r 8b550c31bfbd cgi-bin/LJ/S2/ReplyPage.pm
--- a/cgi-bin/LJ/S2/ReplyPage.pm	Thu Jul 08 15:46:55 2010 +0800
+++ b/cgi-bin/LJ/S2/ReplyPage.pm	Thu Jul 08 15:52:05 2010 +0800
@@ -54,6 +54,8 @@ sub ReplyPage
 
     return if $opts->{'handler_return'};
     return if $opts->{'redir'};
+    return if $opts->{internal_redir};
+
     my $ditemid = $entry->ditemid;
     my $replytoid = $get->{replyto} ? $get->{replyto} : 0;
 
--------------------------------------------------------------------------------