Skip to content

Commit

Permalink
[mod_ginger_base] Force httpss (note the extra s) links to https (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
robvandenbogaard authored Oct 16, 2024
1 parent 2b5aa27 commit 5a20bd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/mod_ginger_base/support/ginger_uri.erl
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ uri(<<"https://", _/binary>> = Uri) ->
https(<<"http://", Uri/binary>>) ->
<<"https://", Uri/binary>>;
https(<<"https://", _/binary>> = Uri) ->
Uri.
Uri;
https(<<"httpss://", Uri/binary>>) ->
<<"https://", Uri/binary>>.

0 comments on commit 5a20bd3

Please sign in to comment.