Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test: cover peer path backslash separators (#11997)

Adam Eivy7ede4aa86129
diff --git a/server/lib/apiAccessPolicy.test.js b/server/lib/apiAccessPolicy.test.js
index 6ed19e026c..54b5df0fb5 100644
--- a/server/lib/apiAccessPolicy.test.js
+++ b/server/lib/apiAccessPolicy.test.js
@@ -89,6 +89,8 @@ describe('peer API surface (#8387)', () => {
'/api/peer-sync//manifest',
'/data/images/%2e%2e/secret.json',
'/data/images/a%2fb.png',
+ '/data/images/a%5cb.png',
+ '/data/images/a\\b.png',
'/data/images/..',
]) {
expect(isPeerApiRequestAllowed('GET', path)).toBe(false);