Skip to content

Commit 8eabb5b

Browse files
committed
hide the package.json and the checksum files
1 parent 5435366 commit 8eabb5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

addons/content-browse/common/src/main/java/org/commonjava/indy/content/browse/ContentBrowseController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private ContentBrowseResult renderResult( final StoreKey key, final String reque
126126
//skip npm adduser path to avoid the sensitive info showing.
127127
//continue;
128128
}
129-
if ( p.endsWith( NPM_METADATA_NAME ) )
129+
if ( p.contains( NPM_METADATA_NAME ) )
130130
{
131131
//the package.json should not be visible for user
132132
continue;

0 commit comments

Comments
 (0)