Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit b18c383

Browse files
author
Tomas Lamr
committed
fix path escaping in url
1 parent 1b04f75 commit b18c383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/snippets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (s *Server) formatResults(result *zoekt.SearchResult, query string, localPr
7979
err := tpl.Execute(&buf, map[string]string{
8080
"Branch": b,
8181
"Version": version,
82-
"Path": filename,
82+
"Path": url.QueryEscape(filename),
8383
})
8484
if err != nil {
8585
log.Printf("url template: %v", err)

0 commit comments

Comments
 (0)