Skip to content

Commit

Permalink
Add error handling for unescaping path
Browse files Browse the repository at this point in the history
  • Loading branch information
machawk1 committed Apr 16, 2024
1 parent be78613 commit ae707ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,12 @@ func aggregateTimemap(urir string, dttmp *time.Time, sess *Session) (basetm *lis

func parseURI(uri string) (urir string, err error) {
uescd, err := url.PathUnescape(uri)

if err != nil {
logError.Printf("Error Unescaping path (%s): %v", uri, err)
return
}

if !regs["isprtcl"].MatchString(uescd) {
uescd = "http://" + uescd
}
Expand Down

0 comments on commit ae707ad

Please sign in to comment.