Skip to content

Commit

Permalink
Use the actual csrf token, not the placeholder (url::site doesn't
Browse files Browse the repository at this point in the history
replace that).  Fixes ticket #1361
  • Loading branch information
bharat committed Sep 11, 2010
1 parent cef7ca9 commit 14ae1fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gallery/views/upgrader.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</div>
<? else: ?>
<div id="upgrade_button" class="button button-active">
<a id="upgrade_link" href="<?= url::site("upgrader/upgrade?csrf=__CSRF__") ?>">
<a id="upgrade_link" href="<?= url::site("upgrader/upgrade?csrf=" . access::csrf_token()) ?>">
<?= t("Upgrade all") ?>
</a>
</div>
Expand Down

0 comments on commit 14ae1fd

Please sign in to comment.