Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
shield-3401823
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
shield-3401823
Commits
4376e2c3
Commit
4376e2c3
authored
13 years ago
by
Kiraly Peter
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
shield.module
+5
-0
5 additions, 0 deletions
shield.module
with
5 additions
and
0 deletions
shield.module
+
5
−
0
View file @
4376e2c3
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment