alpha
Login
or
Join now
dunkirk.sh
/
core
forked from
tangled.org/core
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
knotserver: urldecode refs
author
Anirudh Oppiliappan
date
1 year ago
(Mar 18, 2025, 10:37 PM +0200)
commit
71799c83
71799c83460e037f1af9c4e89a66d9f1f6860cad
parent
3e0f49fa
3e0f49faa4cd901ae74d7e55e2a0097a6b8ed527
+2
-1
1 changed file
Expand all
Collapse all
Unified
Split
knotserver
routes.go
+2
-1
knotserver/routes.go
Reviewed
···
183
183
func (h *Handle) Blob(w http.ResponseWriter, r *http.Request) {
184
184
treePath := chi.URLParam(r, "*")
185
185
ref := chi.URLParam(r, "ref")
186
186
+
ref, _ = url.PathUnescape(ref)
186
187
187
188
l := h.l.With("handler", "FileContent", "ref", ref, "treePath", treePath)
188
189
···
333
334
334
335
func (h *Handle) Diff(w http.ResponseWriter, r *http.Request) {
335
336
ref := chi.URLParam(r, "ref")
337
337
+
ref, _ = url.PathUnescape(ref)
336
338
337
339
l := h.l.With("handler", "Diff", "ref", ref)
338
340
···
491
493
return
492
494
}
493
495
494
494
-
log.Println("branch", data.DefaultBranch)
495
496
if data.DefaultBranch == "" {
496
497
data.DefaultBranch = h.c.Repo.MainBranch
497
498
}