diff --git a/dojo/models.py b/dojo/models.py index 1270aa7a1cb..2d9fa7f5805 100755 --- a/dojo/models.py +++ b/dojo/models.py @@ -1501,7 +1501,7 @@ def get_breadcrumbs(self): @staticmethod def from_uri(uri): try: - url = hyperlink.parse(url=uri) + url = hyperlink.parse(url=uri, decoded=False) except hyperlink.URLParseError as e: raise ValidationError('Invalid URL format: {}'.format(e)) @@ -1515,7 +1515,7 @@ def from_uri(uri): return Endpoint( protocol=url.scheme if url.scheme != '' else None, - userinfo=':'.join(url.userinfo) if url.userinfo not in [(), ('',)] else None, + userinfo=':'.join(url.userinfo) if url.userinfo not in ['', (), ('',)] else None, host=url.host if url.host != '' else None, port=url.port, path='/'.join(url.path)[:500] if url.path not in [None, (), ('',)] else None,