Skip to content

Commit

Permalink
Merge branch 'security/validate-refresh' into 4.0.0-releng
Browse files Browse the repository at this point in the history
  • Loading branch information
jibsheet committed Apr 14, 2011
2 parents c32b196 + 86812b5 commit e77f11b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion share/html/Elements/Header
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
<title><%$Title%></title>

% if ($Refresh && $Refresh =~ /^(\d+)/ && $1 > 0) {
<meta http-equiv="refresh" content="<% $Refresh %>" />
% my $URL = $m->notes->{LogoutURL}; $URL = $URL ? ";URL=$URL" : "";
<meta http-equiv="refresh" content="<% "$1$URL" %>" />
% }

<link rel="shortcut icon" href="<%RT->Config->Get('WebImagesURL')%>favicon.png" type="image/png" />
Expand Down
3 changes: 2 additions & 1 deletion share/html/NoAuth/Logout.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
<& /Elements/Header, Title => loc('Logout'), Refresh => RT->Config->Get('LogoutRefresh').";URL=$URL" &>
<& /Elements/Header, Title => loc('Logout'), Refresh => RT->Config->Get('LogoutRefresh') &>
</div>

<div id="body" class="login-body">
Expand Down Expand Up @@ -81,4 +81,5 @@
}

$m->callback( %ARGS, CallbackName => 'AfterSessionDelete' );
$m->notes->{LogoutURL} = $URL;
</%INIT>

0 comments on commit e77f11b

Please sign in to comment.