- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for whitelist (0.04 sec)
-
src/main/java/jcifs/util/PathValidator.java
} /** * Check if path is whitelisted */ private boolean isWhitelisted(String path) { if (whitelistedPaths.isEmpty()) { return true; // No whitelist means all paths allowed } String lowerPath = path.toLowerCase(); for (String whitelisted : whitelistedPaths) { if (lowerPath.startsWith(whitelisted) || lowerPath.equals(whitelisted)) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/util/PathValidatorTest.java
// Should allow whitelisted path String allowed = validator.validatePath("\\share\\allowed\\file.txt"); assertEquals("\\share\\allowed\\file.txt", allowed); // Should block non-whitelisted path try { validator.validatePath("\\share\\other\\file.txt"); fail("Should block non-whitelisted path"); } catch (SmbException e) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.6K bytes - Viewed (0) -
cmd/signature-v2.go
"encoding/base64" "fmt" "net/http" "net/url" "sort" "strconv" "strings" xhttp "github.com/minio/minio/internal/http" "github.com/minio/minio/internal/auth" ) // Whitelist resource list that will be used in query string for signature-V2 calculation. // // This list should be kept alphabetically sorted, do not hastily edit. var resourceList = []string{ "acl", "cors", "delete",
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 12.2K bytes - Viewed (0)