Skip to content

Build URL safely to avoid formatting issues #4

Description

@mjyeaney

In the case below, we should be building / constructing service URL's using standard URI builder libraries instead of string formatting in order to avoid issues with path separators, well-formed URL's, invalid protocols, etc.

apiUrl = f"{self.serviceEndpoint}customvision/v3.0/Prediction/{self.projectId}/detect/iterations/{self.publishIterationName}/image/nostore"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Code-ReviewIssue is a result of code reviewSecurity IssueThe issue presents a possible security issue.bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions