Skip to content

Commit

Permalink
bug fix in ph
Browse files Browse the repository at this point in the history
  • Loading branch information
NitescuLucian committed Oct 5, 2023
1 parent 786f875 commit 04182a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ph/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ func extractParametersFromURL(url string) {

parameters := extractParametersFromString(htmlContent)
for name, value := range parameters {
fmt.Printf("%s?%s=%s\n", url, name, value)
if strings.Contains(url, "?") {
fmt.Printf("%s&%s=%s\n", url, name, value)
} else {
fmt.Printf("%s?%s=%s\n", url, name, value)
}

}
}

Expand Down

0 comments on commit 04182a3

Please sign in to comment.