Skip to content

Commit

Permalink
encodeURI Permalink Photos
Browse files Browse the repository at this point in the history
kristofzerbe committed Sep 25, 2023
1 parent abd80aa commit 88fd87c
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion themes/landscape/layout/_partial/post/interaction.ejs
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@
<label for="webmention-form-source">Your Article URL:</label><br>
<input class="webmention-form-source" type="url" name="source" placeholder="https://your-blog.com/your-article"
required="">
<input type="hidden" name="target" value="<%- post.permalink %>">
<input type="hidden" name="target" value="<%= encodeURI(post.permalink) %>">
<input type="submit" value="Send Webmention">
</form>

2 changes: 1 addition & 1 deletion themes/landscape/layout/_partial/post/permalink.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="<%= class_name %>" id="article-permalink-<%= post._id %>">
<input class="article-permalink-value" value="<%- post.permalink %>"
<input class="article-permalink-value" value="<%= encodeURI(post.permalink) %>"
data-id="<%= post._id %>" data-title="<%= post.title %>" />
<a class="article-action action-copy" title="Copy URL"></a>
<a class="article-action action-share" title="Open Share Dialog"></a>

0 comments on commit 88fd87c

Please sign in to comment.