Skip to content

Commit

Permalink
fix: add more disallowed pg functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar committed Jul 2, 2024
1 parent 7f3c8ef commit 08ed138
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,15 @@ def CSV_TO_HIVE_UPLOAD_DIRECTORY_FUNC( # pylint: disable=invalid-name
# unsafe SQL functions in SQL Lab and Charts. The keys of the dictionary are the engine
# names, and the values are sets of disallowed functions.
DISALLOWED_SQL_FUNCTIONS: dict[str, set[str]] = {
"postgresql": {"version", "query_to_xml", "inet_server_addr", "inet_client_addr"},
"postgresql": {
"version",
"query_to_xml",
"inet_server_addr",
"inet_client_addr",
"query_to_xml_and_xmlschema",
"table_to_xml",
"table_to_xml_and_xmlschema",
},
"clickhouse": {"url"},
"mysql": {"version"},
}
Expand Down

0 comments on commit 08ed138

Please sign in to comment.