Skip to content

Commit

Permalink
Escape layerinfo value
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Feb 7, 2024
1 parent d0fc07e commit bf939b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/info_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# template for GetFeatureInfoResponse <Layer> tag
layer_template = Template("""
<Layer name="{{ layer_title|e }}" layername="{{ layer_name|e }}"
{{ 'layerinfo="%s"' | format(parent_facade if parent_facade else layer_name) }}
layerinfo="{{ (parent_facade if parent_facade else layer_name)|e }}"
{{ 'featurereport="%s"' | format(feature_report) if feature_report }}
{{ 'displayfield="%s"' | format(display_field) if display_field }}>
{%- for feature in features %}
Expand Down

0 comments on commit bf939b0

Please sign in to comment.