mirror of https://github.com/apache/superset.git
fix: don't log invalid redirect URL send by user (#16955)
This commit is contained in:
parent
3dee22adfd
commit
6d1fbb0668
|
@ -65,7 +65,7 @@ class R(BaseSupersetView): # pylint: disable=invalid-name
|
||||||
def shortner(self) -> FlaskResponse:
|
def shortner(self) -> FlaskResponse:
|
||||||
url = request.form.get("data")
|
url = request.form.get("data")
|
||||||
if not self._validate_url(url):
|
if not self._validate_url(url):
|
||||||
logger.warning("Invalid URL: %s", url)
|
logger.warning("Invalid URL")
|
||||||
return Response("Invalid URL", 400)
|
return Response("Invalid URL", 400)
|
||||||
obj = models.Url(url=url)
|
obj = models.Url(url=url)
|
||||||
db.session.add(obj)
|
db.session.add(obj)
|
||||||
|
|
Loading…
Reference in New Issue