Fix trackback deletion from frontend, invalid referrer error

Was missing the token.

For context see https://board.s9y.org/viewtopic.php?f=10&t=24633

Cherry-picked from master branch.
This commit is contained in:
onli 2019-12-16 14:49:00 +01:00 committed by Thomas Hochstein
parent 6accc81ad6
commit d462580606
2 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,10 @@ Version 2.3.3-beta1 ()
* Updates mailer event plugin to support force sending mails on * Updates mailer event plugin to support force sending mails on
published blog entries and ability to prepend a mail body. published blog entries and ability to prepend a mail body.
Also fixes missing "keep strip tags" configuration option Also fixes missing "keep strip tags" configuration option
* Fix: Add valid HTTP referrer when trying to delete a
trackback from the frontend
* Use the video tag for videos in the Medialibrary, also when * Use the video tag for videos in the Medialibrary, also when
inserting such a video into an entry inserting such a video into an entry

View File

@ -11,7 +11,7 @@
{/if} {/if}
{if $entry.is_entry_owner} {if $entry.is_entry_owner}
<footer> <footer>
<a href="{$serendipityBaseURL}comment.php?serendipity[delete]={$trackback.id}&amp;serendipity[entry]={$trackback.entry_id}&amp;serendipity[type]=trackbacks">{$CONST.DELETE}</a> <a href="{$trackback.link_delete}">{$CONST.DELETE}</a>
</footer> </footer>
{/if} {/if}
</article> </article>