fix: don't send invalid URLs back to the user (#16687)
* fix: don't send bogus URLs back to the user * lint, remove f string
This commit is contained in:
parent
ad60c0c4ad
commit
5ac8ac0e6c
|
|
@ -66,7 +66,7 @@ class R(BaseSupersetView): # pylint: disable=invalid-name
|
|||
url = request.form.get("data")
|
||||
if not self._validate_url(url):
|
||||
logger.warning("Invalid URL: %s", url)
|
||||
return Response(f"Invalid URL: {url}", 400)
|
||||
return Response("Invalid URL", 400)
|
||||
obj = models.Url(url=url)
|
||||
db.session.add(obj)
|
||||
db.session.commit()
|
||||
|
|
|
|||
Loading…
Reference in New Issue