From d2bf3cf8ab2865fe3db699645391562cbcaa9a6f Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Tue, 8 Mar 2022 12:31:55 +0300 Subject: [PATCH] trusted-projects: don't allow exceptions to prevent checking if a path is trusted: IDEA-288379 GitOrigin-RevId: 7a030457bab42e38d19ab10c770f915d422537d7 --- .../com/intellij/ide/impl/TrustedPathsSettings.kt | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/ide/impl/TrustedPathsSettings.kt b/platform/platform-impl/src/com/intellij/ide/impl/TrustedPathsSettings.kt index 0ac9d863ff58..82596dcbebcc 100644 --- a/platform/platform-impl/src/com/intellij/ide/impl/TrustedPathsSettings.kt +++ b/platform/platform-impl/src/com/intellij/ide/impl/TrustedPathsSettings.kt @@ -1,7 +1,8 @@ -// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.ide.impl import com.intellij.openapi.components.* +import com.intellij.openapi.diagnostic.logger import com.intellij.util.io.isAncestor import com.intellij.util.xmlb.annotations.OptionTag import java.nio.file.Path @@ -18,7 +19,13 @@ internal class TrustedPathsSettings : SimplePersistentStateComponent = Collections.unmodifiableList(state.trustedPaths) @@ -30,4 +37,8 @@ internal class TrustedPathsSettings : SimplePersistentStateComponent() + } } \ No newline at end of file