Skip to content

Commit

Permalink
Merge pull request #123 from ddosify/develop
Browse files Browse the repository at this point in the history
fix csv-absolute-path-check
  • Loading branch information
fatihbaltaci authored Jan 29, 2023
2 parents 0e9c989 + 20c04bc commit 0c3ff28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/csv.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ func readCsv(conf CsvConf) ([]map[string]interface{}, error) {

var reader io.Reader

if _, err = url.ParseRequestURI(conf.Path); err == nil { // url
var pUrl *url.URL
if pUrl, err = url.ParseRequestURI(conf.Path); err == nil && pUrl.IsAbs() { // url
req, err := http.NewRequest(http.MethodGet, conf.Path, nil)
if err != nil {
return nil, err
Expand Down

0 comments on commit 0c3ff28

Please sign in to comment.