From c21e65fd34d50f535a0013edda868c7e27987e0f Mon Sep 17 00:00:00 2001 From: Rob van den Bogaard Date: Wed, 16 Oct 2024 20:01:47 +0200 Subject: [PATCH] [mod_ginger_base] Force httpss (note the extra s) links to https --- modules/mod_ginger_base/support/ginger_uri.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/mod_ginger_base/support/ginger_uri.erl b/modules/mod_ginger_base/support/ginger_uri.erl index cbc2b4960..4db567d6e 100644 --- a/modules/mod_ginger_base/support/ginger_uri.erl +++ b/modules/mod_ginger_base/support/ginger_uri.erl @@ -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>>.