Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
project
drupal
Commits
a52113e5
Commit
a52113e5
authored
1 year ago
by
Alex Pott
Committed by
Conrad Lara
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Applied suggestion to use file_exists()
parent
0f6883ea
No related branches found
No related tags found
1 merge request
!6097
Issue #3112393: Allow vendor hardening to remove individual files
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
composer/Plugin/VendorHardening/VendorHardeningPlugin.php
+1
-1
1 addition, 1 deletion
composer/Plugin/VendorHardening/VendorHardeningPlugin.php
with
1 addition
and
1 deletion
composer/Plugin/VendorHardening/VendorHardeningPlugin.php
+
1
−
1
View file @
a52113e5
...
...
@@ -347,7 +347,7 @@ protected function cleanPathsForPackage(PackageInterface $package, $paths_for_pa
$fs
=
new
Filesystem
();
foreach
(
$paths_for_package
as
$cleanup_item
)
{
$cleanup_path
=
$package_dir
.
'/'
.
$cleanup_item
;
if
(
!
is_dir
(
$cleanup_path
)
&&
!
is_file
(
$cleanup_path
))
{
if
(
!
file_exists
(
$cleanup_path
))
{
// If the package has changed or the --prefer-dist version does not
// include the directory. This is not an error.
$this
->
io
->
writeError
(
sprintf
(
"%s<comment>Path '%s' does not exist.</comment>"
,
str_repeat
(
' '
,
6
),
$cleanup_path
),
TRUE
,
IOInterface
::
VERY_VERBOSE
);
...
...
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