Skip to content

Commit

Permalink
Merge pull request #306 from fuller-inc/sanitize-user-input
Browse files Browse the repository at this point in the history
sanitize user inputs
  • Loading branch information
shogo82148 authored Apr 15, 2022
2 parents 08f16f1 + df01202 commit c25218f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion provider/assume-role/assume-role.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (h *Handler) handle(ctx context.Context, req *requestBody) (*responseBody,
}

func (h *Handler) handleError(w http.ResponseWriter, r *http.Request, err error) {
log.Println(err)
log.Printf("error: %v", err)
status := http.StatusInternalServerError
var body *errorResponseBody

Expand Down
2 changes: 1 addition & 1 deletion provider/assume-role/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func canonicalURL(rawurl string) (string, error) {
case "":
u.Scheme = "http"
default:
return "", fmt.Errorf("unknown scheme: %s", u.Scheme)
return "", fmt.Errorf("unknown scheme: %q", u.Scheme)
}
if port == defaultPort {
port = ""
Expand Down

0 comments on commit c25218f

Please sign in to comment.