Permalink
Browse files

This should fix the cookie-clearing problem

  • Loading branch information...
1 parent 71383cd commit ff98bc6a4fcad0d3a72f7cfc8b3d62d3ea66625a Jim Davis committed May 14, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Bot/Pastebot/Server/Http.pm
@@ -378,13 +378,13 @@ sub httpd_session_got_query {
### Make the paste pretty.
+ my $store = is_true($query->{store});
my %flags;
for my $flag (@flag_names) {
- $flags{$flag} = exists $query ->{$flag} ? is_true($query ->{$flag}) :
- exists $cookie->{$flag} ? is_true($cookie->{$flag}) : 0;
+ $flags{$flag} = $store || exists $query ->{$flag} ? is_true($query ->{$flag}) :
+ exists $cookie->{$flag} ? is_true($cookie->{$flag}) : 0;
}
my $tx = is_true($query->{tx});
- my $store = is_true($query->{store});
my $variants = [
['html', 1.000, 'text/html', undef, 'us-ascii', 'en', undef],

0 comments on commit ff98bc6

Please sign in to comment.