Skip to content

Commit

Permalink
Properly encode URI component.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Aufreiter committed Aug 1, 2012
1 parent 823559a commit 138cc38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _includes/templates/header._
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<% if (window.authenticated) { %>
<%= app.username %> <a class="logout" href="#">Logout</a>
<% } else { %>
<a class="button" href="https://github.com/login/oauth/authorize?client_id={{site.oauth_client_id}}&scope=repo,user,gist&redirect_uri=<%= window.location.href %>">Sign in using Github</a>
<a class="button" href="https://github.com/login/oauth/authorize?client_id={{site.oauth_client_id}}&scope=repo,user,gist&redirect_uri=<%= encodeURIComponent(window.location.href) %>">Sign in using Github</a>
<% } %>
</div>
<% if (state.file) { %>
Expand Down
2 changes: 1 addition & 1 deletion _includes/templates/notification._
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="notification <%= type %>">
Please login with your GitHub account to access that project.
</div>
<a class="button" href="https://github.com/login/oauth/authorize?client_id={{site.oauth_client_id}}&scope=repo, user&redirect_uri=<%= window.location.href %>">Sign in</a>
<a class="button" href="https://github.com/login/oauth/authorize?client_id={{site.oauth_client_id}}&scope=repo, user&redirect_uri=<%= encodeURIComponent(window.location.href) %>">Sign in</a>
<% } else { %>
<div class="notification <%= type %>">
<%= message%>
Expand Down

0 comments on commit 138cc38

Please sign in to comment.