diff options
author | Tobias Hößl <tobias@hoessl.eu> | 2012-03-19 07:37:09 +0000 |
---|---|---|
committer | Tobias Hößl <tobias@hoessl.eu> | 2012-03-19 07:37:09 +0000 |
commit | 0341078a73f03961292d2459f4e442e07b186b34 (patch) | |
tree | 04f02c306fce5558738f1f8b5d4a9443e963554d /mod/photos.php | |
parent | 453b5b46a370e3f01f2c948ac3eddf0bcd82c741 (diff) | |
download | volse-hubzilla-0341078a73f03961292d2459f4e442e07b186b34.tar.gz volse-hubzilla-0341078a73f03961292d2459f4e442e07b186b34.tar.bz2 volse-hubzilla-0341078a73f03961292d2459f4e442e07b186b34.zip |
Existing photos could not be used as profile photos anymore - should be fixed now. And some extra logging in the CSRF-Protection to make debugging easier
Diffstat (limited to 'mod/photos.php')
-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 |