Add checkbox folder browsers

This commit is contained in:
Mikei386
2026-06-14 12:08:37 +02:00
parent c35a183a76
commit ebd2a8a47d
12 changed files with 173 additions and 16 deletions
+11
View File
@@ -0,0 +1,11 @@
package platform
import "testing"
func TestValidateBrowsePathRejectsUnsafePaths(t *testing.T) {
for _, path := range []string{"", "/", "/etc", "/mnt/user/../../etc", "relative"} {
if _, err := validateBrowsePath(path); err == nil {
t.Fatalf("unsafe browse path accepted: %q", path)
}
}
}