aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_tree.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-06 21:10:22 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-06 21:10:22 +0800
commit39aba302878fcffba7496d0892268c8f1467fcd2 (patch)
tree5c80ebd5d844f41393515c430036f5707942b522 /http_handle_repo_tree.go
parentlint: Add lint script (diff)
downloadforge-39aba302878fcffba7496d0892268c8f1467fcd2.tar.gz
forge-39aba302878fcffba7496d0892268c8f1467fcd2.tar.zst
forge-39aba302878fcffba7496d0892268c8f1467fcd2.zip
repo/tree, readme: nosec G203
Diffstat (limited to 'http_handle_repo_tree.go')
-rw-r--r--http_handle_repo_tree.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/http_handle_repo_tree.go b/http_handle_repo_tree.go
index 190f082..ae9efbc 100644
--- a/http_handle_repo_tree.go
+++ b/http_handle_repo_tree.go
@@ -84,7 +84,7 @@ func handle_repo_tree(w http.ResponseWriter, r *http.Request, params map[string]
http.Error(w, "Error formatting code: "+err.Error(), http.StatusInternalServerError)
return
}
- formatted_encapsulated = template.HTML(formatted_unencapsulated.Bytes())
+ formatted_encapsulated = template.HTML(formatted_unencapsulated.Bytes()) //#nosec G203
params["file_contents"] = formatted_encapsulated
render_template(w, "repo_tree_file", params)