Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Google provider does a strict comparison to "on", core does a comparison and sets a global variable based on a lower-cased $_SERVER['HTTPS'] value.
Attached patch swaps out the redundant logic to lean on core HTTPS detection.
Comment | File | Size | Author |
---|---|---|---|
#7 | 2109435-google-fonts-with-update.patch | 2.31 KB | djdevin |
| |||
#4 | 2109435-google-fonts-https-2.patch | 2.05 KB | kyletaylored |
#1 | fontyourface.https_detection.patch.txt | 824 bytes | aidanlis |
fontyourface.https_detection.patch | 901 bytes | Grayside | |
Comments
Comment #1
aidanlis CreditAttribution: aidanlis commentedWe don't even need HTTPS detection, use // instead.
Comment #2
Grayside CreditAttribution: Grayside commentedI'm pretty sure I tried that and it failed somehow.
Comment #3
djdevin3 years later...
Patch in #1 worked.
Example when using OpenShift, some container platform or a CDN, Drupal is going to be responding on a non-SSL configuration and the SSL is going to be on the router side so Drupal won't know it is in SSL mode other than the base_url. Best to use the schema neutral URL.
Comment #4
kyletaylored CreditAttribution: kyletaylored at FFW commentedThis issue was fixed in 8.x, and really just needs to be rolled back into 7.x.
I've attached a patch that rolls in the 8.x commit, in addition fixes the project URL (since it no longer exists).
Comment #5
sdowney2002 CreditAttribution: sdowney2002 as a volunteer commented#4 works. Can we PLEASE get this committed?
Comment #6
djdevinComment #7
djdevinThis also requires an update hook, otherwise existing fonts will not work.
Comment #8
Neslee Canil PintoComment #9
TrevorBradley CreditAttribution: TrevorBradley commentedPatch #7 worked great - desperately needed it for our K8s setup. This is definitely not outdated, the fault still exists in the latest release (unless there's another issue which has patched it into dev)