Skip to content

Build URL safely to avoid formatting issues #4

@mjyeaney

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"

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