Skip to content

Commit

Permalink
revert: Revert "fix: Avoid XSS attack from Jinjin2's Environment()." (f…
Browse files Browse the repository at this point in the history
…east-dev#4357)

Revert "fix: Avoid XSS attack from Jinjin2's Environment(). (feast-dev#4355)"

This reverts commit 40270e7.
  • Loading branch information
franciscojavierarceo authored Jul 16, 2024
1 parent 38cae16 commit cdeab48
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 cdeab48

Please sign in to comment.