Skip to content

Commit

Permalink
Patches Redirect Loop
Browse files Browse the repository at this point in the history
Fixes redirect loop that could occur based on the browser’s response
  • Loading branch information
Fromalaska49 committed Sep 14, 2018
1 parent 6161fe6 commit 4b8ddfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dues.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>Pay Dues | Association for Computing Machinery UTSA</title>
<script type="text/javascript">
//redirect if not secure and not on local dev machine
if(location.protocol != 'https' && location.hostname != 'localhost' && location.hostname != '127.0.0.1'){
if(location.protocol.toLowerCase().indexOf("s") < 0 && location.hostname != 'localhost' && location.hostname != '127.0.0.1'){
window.location.href = 'https://' + location.hostname + location.pathname;
}
</script>
Expand Down

0 comments on commit 4b8ddfc

Please sign in to comment.