Closed (fixed)
Project:
Global Redirect
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2009 at 16:11 UTC
Updated:
17 Mar 2010 at 16:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
smk-ka commentedPatch. Note that php_get_sapi() is not reliable enough to determine whether or not PHP was executed from the command line. $_SERVER['SERVER_ADDR'], on the other hand, will always be set if executed by a webserver.
Comment #2
fuerst commentedWorks well, thanks.
Same is true for the path_redirect Modul. See the issue there: #616772: hook_init() breaks drush
Comment #3
dave reidI don't get why this applies to path_redirect as well. It should only redirect on certain conditions, whereas global_redirect in most cases is 'always' redirecting by design.
Comment #4
dave reidFixed in CVS for 7.x-1.x and 6.x-1.x! Thanks!
http://drupal.org/cvs?commit=336590
http://drupal.org/cvs?commit=336592