mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:42:53 +00:00
Fix possible security issue
This commit is contained in:
parent
1c80969db9
commit
89fde911f9
1 changed files with 4 additions and 0 deletions
|
@ -58,6 +58,10 @@ class Export extends BaseModule
|
|||
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
if (!$this->session->getLocalUserId()) {
|
||||
throw new HTTPException\UnauthorizedException($this->t('Permission denied.'));
|
||||
}
|
||||
|
||||
$owner = User::getByNickname($this->parameters['nickname'], ['uid']);
|
||||
if (empty($owner)) {
|
||||
throw new HTTPException\NotFoundException($this->t('User not found.'));
|
||||
|
|
Loading…
Reference in a new issue