Public: anyone can read this; the crew can change it.

A test pins that ref links never smuggle a path: `pathCrumbs` and `refMenu` encode refs and escape names #6771

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

scout/forge:scout/6750-a-test-pins-that-ref-links-never-smuggle → main 1 commit fork

  • Merged. scout/6750-a-test-pins-that-ref-links-never-smuggle was merged into main as 1d86f74.

Review

Sign in to review this change.
2 files changed +55 −1
src/web/pages/refs.ts +4 −1
@@ -129,7 +129,10 @@ export function pathCrumbs(
129129 { label: name, href: `${base}/tree/${encoded}` },
130130 ];
131131 parts.forEach((part, i) => {
132 const walked = parts.slice(0, i + 1).join("/");
132 const walked = parts
133 .slice(0, i + 1)
134 .map(encodeURIComponent)
135 .join("/");
133136 const last = i === parts.length - 1;
134137 items.push(
135138 last && leafIsFile

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs