mirror of
https://github.com/apache/superset.git
synced 2026-04-07 18:35:15 +00:00
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:
committed by
GitHub
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()
|
||||
|
||||
Reference in New Issue
Block a user