Skip to content

Commit 4a51f0b

Browse files
fix: escape dev server breadcrumb hrefs properly (#4316)
1 parent 26b29ed commit 4a51f0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/api/serve_other.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ func respondWithDirList(queryPath string, dirEntries map[string]bool, fileEntrie
668668
for i, part := range parts {
669669
if i+1 < len(parts) {
670670
html.WriteString("<a href=\"")
671-
html.WriteString(escapeForHTML(strings.Join(parts[:i+1], "/")))
671+
html.WriteString(escapeForAttribute(strings.Join(parts[:i+1], "/")))
672672
html.WriteString("/\">")
673673
}
674674
html.WriteString(escapeForHTML(part))

0 commit comments

Comments
 (0)