Use site-specific variable, instead of hardcoding "lj" to identify the
site.
Patch by fu.
diffs (12 lines):
diff -r 3b443196fc5d -r dbbcd403e86c cgi-bin/ljlib.pl
--- a/cgi-bin/ljlib.pl Sun Jan 16 22:16:51 2011 -0600
+++ b/cgi-bin/ljlib.pl Fri Jan 21 15:07:37 2011 +0800
@@ -883,7 +883,7 @@ sub auth_digest {
my $stale = shift;
my $nonce = LJ::challenge_generate(180); # 3 mins timeout
- my $authline = "Digest realm=\"lj\", nonce=\"$nonce\", algorithm=MD5,
qop=\"auth\"";
+ my $authline = "Digest realm=\"$LJ::SITENAMESHORT\", nonce=\"$nonce\",
algorithm=MD5, qop=\"auth\"";
$authline .= ", stale=\"true\"" if $stale;
$r->header_out("WWW-Authenticate", $authline);
$r->status_line("401 Authentication required");
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog