Skip to content

Commit d4fa9aa

Browse files
authored
safeguard q parameter in template (#1037) (#1038)
1 parent 9165e37 commit d4fa9aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycsw/ogc/api/templates/items.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
<div class="input-group mb-3">
8888
<input type="text" class="form-control" name="q" placeholder="Search" id="tbq" value="">
8989
<script>
90-
$('#tbq').val(decodeURIComponent("{{ attrs['q'].replace('+',' ') }}"))
90+
$('#tbq').val(decodeURIComponent("{{ attrs.get('q', '').replace('+',' ') }}"))
9191
</script>
9292
<input class="btn btn-outline-secondary" type="submit" value="Search"></input>
9393
</div>

0 commit comments

Comments
 (0)