Skip to content

Commit ff34170

Browse files
committed
bug fix: escape characters in url in searchjson; fixes daattali#1232
1 parent 8854d96 commit ff34170

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/search.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"title" : "{% if post.title != "" %}{{ post.title | strip_html | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}", \
1515
"desc" : "{% if post.title != "" %}{{ post.title | strip_html | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}", \
1616
"category" : "{{ post.tags | join: \', \' }}", \
17-
"url" : "{{ site.baseurl }}{{ post.url }}", \
17+
"url" : "{{ site.baseurl }}{{ post.url | escape }}", \
1818
"date" : "{{ post.date | date: "%B %e, %Y" | default: "January 1, 1970" }}" \
1919
}, \
2020
{% endfor %} \

0 commit comments

Comments
 (0)