diff options
author | Simon <simon@kisikew.org> | 2012-03-19 00:40:51 -0700 |
---|---|---|
committer | Simon <simon@kisikew.org> | 2012-03-19 00:40:51 -0700 |
commit | 283bc51acf479eebd54145eb639c681980f6717b (patch) | |
tree | 86518b59c0318d8057a1a8503c6354ebaa96dae3 /mod | |
parent | cca524495cdc8c1167421393f4d8e8da4a94a855 (diff) | |
parent | 0341078a73f03961292d2459f4e442e07b186b34 (diff) | |
download | volse-hubzilla-283bc51acf479eebd54145eb639c681980f6717b.tar.gz volse-hubzilla-283bc51acf479eebd54145eb639c681980f6717b.tar.bz2 volse-hubzilla-283bc51acf479eebd54145eb639c681980f6717b.zip |
Merge pull request #149 from CatoTH/master
Add a missing security token [Using photos as profile photos]
Diffstat (limited to 'mod')
-rwxr-xr-x | mod/photos.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/photos.php b/mod/photos.php index e40ae0d74..4406780d3 100755 --- a/mod/photos.php +++ b/mod/photos.php @@ -1069,7 +1069,7 @@ function photos_content(&$a) { if($can_post && ($ph[0]['uid'] == $owner_uid)) { $tools = array( 'edit' => array($a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '/image/' . $datum . (($cmd === 'edit') ? '' : '/edit'), (($cmd === 'edit') ? t('View photo') : t('Edit photo'))), - 'profile'=>array($a->get_baseurl() . '/profile_photo/use/'.$ph[0]['resource-id'], t('Use as profile photo')), + 'profile'=>array($a->get_baseurl() . '/profile_photo/use/'.$ph[0]['resource-id'] . '?form_security_token=' . get_form_security_token('profile_photo'), t('Use as profile photo')), ); // lock |