Don't try to set the uniq if we don't have one (came in clean, with no
cookies).
Patch by kareila.
diffs (14 lines):
diff -r b2064b27ee3f -r 7ee7a8ef3ec1 cgi-bin/LJ/UniqCookie.pm
--- a/cgi-bin/LJ/UniqCookie.pm Fri Dec 17 16:50:55 2010 +0800
+++ b/cgi-bin/LJ/UniqCookie.pm Fri Dec 17 17:04:47 2010 +0800
@@ -399,8 +399,8 @@ sub ensure_cookie_value {
# set this uniq as our current
# -- will be overridden later if we generate a new value
- $class->set_current_uniq($uniq);
-
+ $class->set_current_uniq( $uniq ) if $uniq;
+
# if no cookie, create one. if older than a day, revalidate
my $now = time();
return if $uniq && $now - $uniq_time < 86400;
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog