--- securepages.module 2009-05-03 16:00:18.000000000 -0700 +++ securepages-patched.module 2010-06-28 13:00:06.000000000 -0700 @@ -10,6 +10,9 @@ * Implementation of hook_boot(). */ function securepages_boot() { + if (php_sapi_name() == 'cli') { + return; + } global $base_url; $path = isset($_GET['q']) ? $_GET['q'] : ''; @@ -48,6 +51,9 @@ function securepages_boot() { * Implementation of hook_init(). */ function securepages_init() { + if (php_sapi_name() == 'cli') { + return; + } if (!variable_get('securepages_enable', 0) || basename($_SERVER['PHP_SELF']) != 'index.php') { return; } @@ -473,4 +479,4 @@ function securepages_can_alter_url($url) } return TRUE; -} \ No newline at end of file +}