Skip to content
Snippets Groups Projects
Commit 4376e2c3 authored by Kiraly Peter's avatar Kiraly Peter
Browse files

1365492: Drush fails with Shield module enabled -- applying Peter Bull's (pbull) patch.

parent b14ee063
No related branches found
No related tags found
No related merge requests found
......@@ -79,6 +79,11 @@ function shield_boot() {
}
$pass = variable_get('shield_pass', '');
// allow Drush to bypass Shield
if (php_sapi_name() == 'cli') {
return;
}
if (!empty($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])
&& $_SERVER['PHP_AUTH_USER'] == $user
&& $_SERVER['PHP_AUTH_PW'] == $pass) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment