fix: don't log invalid redirect URL send by user (#16955)

This commit is contained in:
Daniel Vaz Gaspar 2021-10-04 13:52:57 +01:00 committed by GitHub
parent 3dee22adfd
commit 6d1fbb0668
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class R(BaseSupersetView): # pylint: disable=invalid-name
def shortner(self) -> FlaskResponse:
url = request.form.get("data")
if not self._validate_url(url):
logger.warning("Invalid URL: %s", url)
logger.warning("Invalid URL")
return Response("Invalid URL", 400)
obj = models.Url(url=url)
db.session.add(obj)