Skip to content

Commit

Permalink
Remove fix which is not useful anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
nanego committed Sep 12, 2023
1 parent 17ac9ef commit b74e094
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
<% end %>

<div id="cas-login">
<%
@back_url = back_url
#unescapes back_url on-the-fly because it might be double-escaped in some environments
#(it happens for me at work with 2 reverse-proxies in front of the app...)
@back_url = CGI.unescape(@back_url) if @back_url && @back_url.match(/^https?%3A/)
%>
<%= link_to label_for_cas_login, :controller => "account", :action => "login_with_cas_redirect", :provider => "cas", :origin => @back_url %>
<%= link_to label_for_cas_login, :controller => "account", :action => "login_with_cas_redirect", :provider => "cas", :origin => back_url %>
</div>

<% end %>

0 comments on commit b74e094

Please sign in to comment.