mirror of
https://github.com/friendica/friendica
synced 2024-11-18 04:23:41 +00:00
update function names in logger and comments
This commit is contained in:
parent
a937cf06a3
commit
cafd5ca781
3 changed files with 7 additions and 7 deletions
|
@ -188,7 +188,7 @@ function profile_photo_content(App $a)
|
|||
$imagecrop = [];
|
||||
|
||||
if (isset($a->argv[1]) && $a->argv[1] == 'use' && $a->argc >= 3) {
|
||||
// check_form_security_token_redirectOnErr('/profile_photo', 'profile_photo');
|
||||
// BaseModule::checkFormSecurityTokenRedirectOnError('/profile_photo', 'profile_photo');
|
||||
|
||||
$resource_id = $a->argv[2];
|
||||
//die(":".local_user());
|
||||
|
|
|
@ -60,7 +60,7 @@ function videos_init(App $a)
|
|||
]);
|
||||
|
||||
/// @TODO Old-lost code?
|
||||
/*$sql_extra = permissions_sql($a->data['user']['uid']);
|
||||
/*$sql_extra = Security::getPermissionsSQLByUserId($a->data['user']['uid']);
|
||||
|
||||
$albums = q("SELECT distinct(`album`) AS `album` FROM `photo` WHERE `uid` = %d $sql_extra order by created desc",
|
||||
intval($a->data['user']['uid'])
|
||||
|
|
|
@ -135,9 +135,9 @@ abstract class BaseModule extends BaseObject
|
|||
{
|
||||
if (!self::checkFormSecurityToken($typename, $formname)) {
|
||||
$a = get_app();
|
||||
logger('check_form_security_token failed: user ' . $a->user['guid'] . ' - form element ' . $typename);
|
||||
logger('check_form_security_token failed: _REQUEST data: ' . print_r($_REQUEST, true), LOGGER_DATA);
|
||||
notice(check_form_security_std_err_msg());
|
||||
logger('checkFormSecurityToken failed: user ' . $a->user['guid'] . ' - form element ' . $typename);
|
||||
logger('checkFormSecurityToken failed: _REQUEST data: ' . print_r($_REQUEST, true), LOGGER_DATA);
|
||||
notice(self::getFormSecurityStandardErrorMessage());
|
||||
goaway(System::baseUrl() . $err_redirect);
|
||||
}
|
||||
}
|
||||
|
@ -146,8 +146,8 @@ abstract class BaseModule extends BaseObject
|
|||
{
|
||||
if (!self::checkFormSecurityToken($typename, $formname)) {
|
||||
$a = get_app();
|
||||
logger('check_form_security_token failed: user ' . $a->user['guid'] . ' - form element ' . $typename);
|
||||
logger('check_form_security_token failed: _REQUEST data: ' . print_r($_REQUEST, true), LOGGER_DATA);
|
||||
logger('checkFormSecurityToken failed: user ' . $a->user['guid'] . ' - form element ' . $typename);
|
||||
logger('checkFormSecurityToken failed: _REQUEST data: ' . print_r($_REQUEST, true), LOGGER_DATA);
|
||||
header('HTTP/1.1 403 Forbidden');
|
||||
killme();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue