Skip to content

Commit

Permalink
Revert "fix: Avoid XSS attack from Jinjin2's Environment(). (#4355)"
Browse files Browse the repository at this point in the history
This reverts commit 40270e7.
  • Loading branch information
franciscojavierarceo committed Jul 16, 2024
1 parent 38cae16 commit 508c97d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,7 @@ def build_point_in_time_query(
full_feature_names: bool = False,
) -> str:
"""Build point-in-time query between each feature view table and the entity dataframe for PostgreSQL"""
template = Environment(autoescape=True, loader=BaseLoader()).from_string(
source=query_template
)
template = Environment(loader=BaseLoader()).from_string(source=query_template)

final_output_feature_names = list(entity_df_columns)
final_output_feature_names.extend(
Expand Down
4 changes: 1 addition & 3 deletions sdk/python/feast/infra/offline_stores/offline_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ def build_point_in_time_query(
full_feature_names: bool = False,
) -> str:
"""Build point-in-time query between each feature view table and the entity dataframe for Bigquery and Redshift"""
template = Environment(autoescape=True, loader=BaseLoader()).from_string(
source=query_template
)
template = Environment(loader=BaseLoader()).from_string(source=query_template)

final_output_feature_names = list(entity_df_columns)
final_output_feature_names.extend(
Expand Down

0 comments on commit 508c97d

Please sign in to comment.