(self, url)
Validate a url for putrequest.
Validate a url for putrequest.
Validate a url for putrequest .
def _validate_path(self, url):
        """Validate a url for putrequest."""
        # Prevent CVE-2019-9740.
        match = _contains_disallowed_url_pchar_re.search(url)
        if match:
            raise InvalidURL(f"URL can't contain control characters. {url!r} "
                             f"(found at least {match.group()!r})")
def _validate_path ( self , url ) : # Prevent CVE-2019-9740. match = _contains_disallowed_url_pchar_re . search ( url ) if match : raise InvalidURL ( f"URL can't contain control characters. {url!r} " f"(found at least {match.group()!r})" )