Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2010 at 22:51 UTC
Updated:
22 Dec 2017 at 16:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
spam38 commentedAdding an alternative patch that doesn't use strict type checking against variable_get('https') to stay consistent with the previous version of the comparison.
Comment #2
spam38 commentedOne more try on the patch, I had to add an else statement to handle a user trying to force HTTPS when the 'https' variable was false.
Comment #3
mfbAnd what about sites (such as one of mine) that want to force HTTPS when the 'https' variable is not set?
(In case you're wondering, the reason is that the 'https' variable is used to create insecure session cookies upon HTTPS logins, which for obvious reasons at least some sites will not want to do, but they may still need to generate links or redirects to the HTTPS site from the HTTP site).
Comment #4
chx commentedThe current https facility is only to supplement the actions of the $conf['https'] setting and the $form['#https'] setting. Doing more is an API change and a feature request. hook_url_outbound_alter is your friend.
Comment #5
mfbBTW, I added a hook_url_outbound_alter() implementation to http://drupal.org/project/securelogin so sites that don't have $conf['https'] enabled can still link or redirect from the HTTP to HTTPS site.
Comment #6
chx commentedThat's weird. Why did you do that when that module already requires $conf['https'] to be on?
Comment #7
mfbThat module recommends $conf['https'] to be off, I even put it on the module page to make it clear. but sounds like it's not clear enough, I'll rewrite it.
Comment #8
berenddeboer commentedEh really, so we can't force https? And fixing this bug is an API change?? I simply don't get it. If I want to enforce https, I should be able to.
Comment #9
matt2000 commented@berenddeboer,
I think you're reading it backward. Enforcing HTTPS should work fine. It's the opposite that may not be supported, i.e., forcing an UNsecure url by passing `$options['https'] = FALSE` may be ignored.
Comment #10
dawehnerThis variable no longer exists.
Comment #12
David_Rothstein commentedLet's put this back to Drupal 7 where it originally was, and fix it as a documentation bug.
Comment #13
David_Rothstein commented