shithub: mycel

Download patch

ref: be625b0f144f89179e63d680ef2cc59c6fb974d8
parent: d2dd7713369793c375eb3f3afe07a3cbac02d609
author: Philip Silva <philip.silva@protonmail.com>
date: Mon Jul 11 06:21:27 EDT 2022

url unescaping in location field

--- a/cmd/opossum/main.go
+++ b/cmd/opossum/main.go
@@ -226,6 +226,12 @@
 
 		case loc = <-b.LocCh:
 			log.Infof("loc=%v", loc)
+			ue, err := url.QueryUnescape(loc)
+			if err == nil {
+				loc = ue
+			} else {
+				log.Errorf("unescape %v: %v", loc, err)
+			}
 			if nav, ok := v.(*Nav); ok {
 				nav.LocationField.Text = loc
 			}