repos / pico

pico services mono repo
git clone https://github.com/picosh/pico.git

commit
8982fea
parent
b11cb7b
author
Eric Bower
date
2024-03-30 21:08:58 -0400 EDT
fix(pgs): use full filepath when checking for `.well-known`

Closes: #113
1 files changed,  +1, -1
M filehandlers/assets/handler.go
+1, -1
1@@ -347,7 +347,7 @@ func (h *UploadAssetHandler) validateAsset(data *FileData) (bool, error) {
2 	}
3 
4 	// ".well-known" is a special case
5-	if strings.Contains(fname, "/.well-known/") {
6+	if strings.Contains(data.Filepath, "/.well-known/") {
7 		if shared.IsTextFile(string(data.Text)) {
8 			return true, nil
9 		} else {