Requests without any Drupal path, such as http://mydomain.com/index.php, are currently rejected.
It works without the "index.php", but I think this behavior is not desired.
The same problem is maybe more severe for "http://mydomain.com/cron.php?cron_key=..."
(Note that this script is supposed to be executed from curl without a login.)
The solution is actually very simple:
function fast_404_path_check() {
$valid = TRUE;
//if (variable_get('fast_404_path_check', FALSE) && isset($_GET['q'])) { //old
if (variable_get('fast_404_path_check', FALSE) && !empty($_GET['q'])) { //new
This is also blocking me from executing other scripts from shell, so I would really appreciate a fix.
Comments
Comment #1
soyarma commentedAgreed, that's a significant issue. I've updated it in the 7.x dev branch and will be cutting a new release for 6.x and 7.x shortly.
Comment #2
acrollet commentedI hate to say it, but this fix seems not to have made it into -dev - perhaps it was never pushed? At any rate, I'm attaching the fix in #1 as a patch.
Comment #3
mr.baileysIt looks like the 7.x-1.x-dev branch is unused, and new releases (and the dev release on the project page) are instead tagged on the 7.x-1.x branch (no -dev). The fix does seem to be present in that branch, and in the downloadable dev snapshot, so tentatively moving back to fixed.