Because function request_uri() doesn't return the protocol and host like http://www.example.com/cron.php.
If we set
$base_url = 'http://www.example.com';
, the by pass will be failed.
So, the old method is better.
if (!$securesite_enabled || strstr(request_uri(),'cron.php')) {
return;
}
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | securesite-179618.patch | 1.02 KB | NaX |
Comments
Comment #1
Kirin_Lin@drupaltaiwan.org commentedI think this issue again, maybe this one can be used:
Comment #2
Kirin_Lin@drupaltaiwan.org commentedthe pattern should be
I forgot the hyphen(-).
Comment #3
gábor hojtsyI think this check is completely faulty. request_uri() does not contain the domain, so the $base_url should not be looked for in it as far as I see. The cron is only able to run with this modification our my site.
Look at http://api.drupal.org/api/function/request_uri/5 and see for yourself. Although I am a fresh user of this module, this kind of error does not give that good an impression. This is a quite basic functionality which should not be broken.
Comment #4
NaX commentedPatch with a simple fix, using
$base_path.Comment #5
NaX commentedCommitted to dev.
Comment #6
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.