Skip to content

Commit cdeab48

Browse files
revert: Revert "fix: Avoid XSS attack from Jinjin2's Environment()." (feast-dev#4357)
Revert "fix: Avoid XSS attack from Jinjin2's Environment(). (feast-dev#4355)" This reverts commit 40270e7.
1 parent 38cae16 commit cdeab48

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

sdk/python/feast/infra/offline_stores/contrib/postgres_offline_store/postgres.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,7 @@ def build_point_in_time_query(
365365
full_feature_names: bool = False,
366366
) -> str:
367367
"""Build point-in-time query between each feature view table and the entity dataframe for PostgreSQL"""
368-
template = Environment(autoescape=True, loader=BaseLoader()).from_string(
369-
source=query_template
370-
)
368+
template = Environment(loader=BaseLoader()).from_string(source=query_template)
371369

372370
final_output_feature_names = list(entity_df_columns)
373371
final_output_feature_names.extend(

sdk/python/feast/infra/offline_stores/offline_utils.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,7 @@ def build_point_in_time_query(
186186
full_feature_names: bool = False,
187187
) -> str:
188188
"""Build point-in-time query between each feature view table and the entity dataframe for Bigquery and Redshift"""
189-
template = Environment(autoescape=True, loader=BaseLoader()).from_string(
190-
source=query_template
191-
)
189+
template = Environment(loader=BaseLoader()).from_string(source=query_template)
192190

193191
final_output_feature_names = list(entity_df_columns)
194192
final_output_feature_names.extend(

0 commit comments

Comments
 (0)