Skip to content

Commit

Permalink
fix: finish cookie / init_request refactor (#7126)
Browse files Browse the repository at this point in the history
* fix: finish cookie / init_request refactor
  • Loading branch information
stephanegigandet authored Jul 25, 2022
1 parent 7599272 commit 8a3ee59
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cgi/login.pl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
if (defined $User_id) {
my $loc = $redirect || $formatted_subdomain;
$r->headers_out->set(Location => $loc);
$r->err_headers_out->add('Set-Cookie' => $cookie);
$r->err_headers_out->add('Set-Cookie' => $request_ref->{cookie});
$r->status(302);
return Apache2::Const::OK;
}
Expand Down
2 changes: 1 addition & 1 deletion cgi/product_image.pl
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
process_template('product_image.tt.html', $template_data_ref, \$html) or $html = '';
$html .= "<p>" . $tt->error() . "</p>";

$request_ref->{title} = $title;
$request_ref->{title} = $alt;
$request_ref->{content_ref} = \$html;
$request_ref->{full_width} = 0;
display_page($request_ref);
Expand Down
2 changes: 1 addition & 1 deletion cgi/reset_password.pl
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@

process_template('web/pages/reset_password/reset_password.tt.html', $template_data_ref, \$html) or $html = "<p>" . $tt->error() . "</p>";

$request_ref->{title} = $title;
$request_ref->{title} = $Lang{'reset_password'}{$lang};
$request_ref->{content_ref} = \$html;
display_page($request_ref);

4 changes: 2 additions & 2 deletions cgi/session.pl
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@

$r->err_headers_out->add('Set-Cookie' => $request_ref->{cookie});
$r->headers_out->set(Location => "$url");
$r->status(301);
return 301;
$r->status(302);
return 302;
}
}

Expand Down

0 comments on commit 8a3ee59

Please sign in to comment.