I am trying to force all pages in drupal to be over HTTPS.
In order to do this at present, here is my current config:
drush vget securepages_
securepages_switch: 0
securepages_basepath: ""
securepages_basepath_ssl: ""
securepages_secure: "0"
securepages_pages: ""
securepages_ignore: ""
securepages_roles: Array
(
[2] => 2
[4] => 0
[7] => 0
[3] => 0
[10] => 0
[8] => 0
[11] => 0
)
securepages_enable: 1
So as you can see above, I set "Make secure every page except the listed pages." to true and then left "Pages" empty. There is a flaw in the logic of securepages.module that will cause $pages to be empty, and thus the rule never matches.
Attached is a patch that goes someway to making the text labels of the radio buttons match the functionality
Comments
Comment #1
acbramley commented+1 confirming this patch fixes the issue, the only way previously to make all pages ssl was to put something in the pages setting.
Comment #2
donwinchell commentedwhen trying this patch as per below I get the following:
Anyone else get this or can explain what is taking place ?
(thanks for the module and the work on patching)
Comment #3
wiifm@donwinchell you need to use
patch -p1 < securepages-ssl-all-the-things_0.patchAs the path is prefixed
Comment #4
dxxPatch solved my issue! (in case of forcing all pages to HTTPS)
Comment #5
joelcollinsdc commentedTook me forever to figure out why securepages stopped working after upgrading to beta2. Please commit this!!!
Comment #6
joelcollinsdc commentedComment #7
joelcollinsdc commentedActually I think this patch should be modified to handle multiple line empty strings. We had been on securepages beta 1 and securepages_pages is set to a single line return character
(shows up as
securepages_pages: '
'
in drush...)
This causes this patch to be ineffictive.
Comment #8
joelcollinsdc commentedThis issue is attempting to resolve the same issue: #566632: "Make secure every page" does not work when empty
Comment #9
hussainwebMarking this as duplicate of #566632: "Make secure every page" does not work when empty, which is RTBC.