github-advanced-security[bot] commented on code in PR #35237:
URL: https://github.com/apache/superset/pull/35237#discussion_r2371067532


##########
superset/views/core.py:
##########
@@ -804,11 +787,7 @@
             else:
                 redirect_url = url_for("DashboardModelView.list")
                 warn_msg = utils.error_msg_from_exception(ex)
-            return redirect_with_flash(
-                url=redirect_url,
-                message=warn_msg,
-                category="danger",
-            )
+            return redirect(f"{redirect_url}?error={parse.quote(warn_msg)}")

Review Comment:
   ## URL redirection from remote source
   
   Untrusted URL redirection depends on a [user-provided value](1).
   
   [Show more 
details](https://github.com/apache/superset/security/code-scanning/2055)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to