Skip to content

Commit

Permalink
Adds additional path manipulation options
Browse files Browse the repository at this point in the history
  • Loading branch information
topscoder committed Feb 5, 2024
1 parent 4ce209e commit b4f990f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions fourohme.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,25 @@ func main() {
urlList = append(urlList, fmt.Sprintf("%s/.;%s", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s//;/%s", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s%s", sUrl, strings.ToUpper(sPath)))
urlList = append(urlList, fmt.Sprintf("%s/%2e/%s", sUrl, sPath))

Check failure on line 510 in fourohme.go

View workflow job for this annotation

GitHub Actions / Lint Test

printf: fmt.Sprintf format %2e has arg sPath of wrong type string (govet)

Check failure on line 510 in fourohme.go

View workflow job for this annotation

GitHub Actions / Lint Test

printf: fmt.Sprintf format %2e has arg sPath of wrong type string (govet)
urlList = append(urlList, fmt.Sprintf("%s/%s", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s/%s..;/", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s/%s/..;/", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s/%s%20", sUrl, sPath))

Check failure on line 514 in fourohme.go

View workflow job for this annotation

GitHub Actions / Lint Test

printf: fmt.Sprintf format %20 is missing verb at end of string (govet)

Check failure on line 514 in fourohme.go

View workflow job for this annotation

GitHub Actions / Lint Test

printf: fmt.Sprintf format %20 is missing verb at end of string (govet)
urlList = append(urlList, fmt.Sprintf("%s/%s%09", sUrl, sPath))

Check failure on line 515 in fourohme.go

View workflow job for this annotation

GitHub Actions / Lint Test

printf: fmt.Sprintf format %09 is missing verb at end of string (govet)

Check failure on line 515 in fourohme.go

View workflow job for this annotation

GitHub Actions / Lint Test

printf: fmt.Sprintf format %09 is missing verb at end of string (govet)
urlList = append(urlList, fmt.Sprintf("%s/%s%00", sUrl, sPath))

Check failure on line 516 in fourohme.go

View workflow job for this annotation

GitHub Actions / Lint Test

printf: fmt.Sprintf format %00 is missing verb at end of string (govet)

Check failure on line 516 in fourohme.go

View workflow job for this annotation

GitHub Actions / Lint Test

printf: fmt.Sprintf format %00 is missing verb at end of string (govet)
urlList = append(urlList, fmt.Sprintf("%s/%s.json", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s/%s.css", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s/%s.html", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s/%s?", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s/%s??", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s/%s???", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s/%s?testparam=fourohme", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s/%s#", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s/%s#test", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s/%s/.", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s//%s//", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s/./%s/./", sUrl, sPath))

for _, url := range urlList {
wg.Add(1)
Expand Down

0 comments on commit b4f990f

Please sign in to comment.