Overview
Comment:Cette ligne ne sert à rien
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a004d1e15852d886cde6d1c3c604a8a0586a4ab3
User & Date: bohwaz on 2018-04-19 11:35:40
Other Links: manifest | tags
Context
2018-04-19
11:40
Remplacer /admin/ par "/" sinon on risque d'avoir une chaîne vide check-in: 3789725be5 user: bohwaz tags: trunk, stable
11:35
Cette ligne ne sert à rien check-in: a004d1e158 user: bohwaz tags: trunk
11:35
Le cookie de login doit être sur la racine, pas sur /admin/ sinon l'accès aux fichiers ne marche plus ! check-in: 724e078f75 user: bohwaz tags: trunk, stable
Changes

Modified src/www/file.php from [29f2d831bc] to [a75fe87ff3].

29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
}
catch (\InvalidArgumentException $e)
{
	throw new UserException('Ce fichier n\'existe pas.');
}

$session = new Membres\Session;
$user = $session->isLogged() ? $session->getUser() : false;

if (!$file->checkAccess($session))
{
	header('HTTP/1.1 403 Forbidden', true, 403);
	throw new UserException('Vous n\'avez pas accès à ce fichier.');
}








<







29
30
31
32
33
34
35

36
37
38
39
40
41
42
}
catch (\InvalidArgumentException $e)
{
	throw new UserException('Ce fichier n\'existe pas.');
}

$session = new Membres\Session;


if (!$file->checkAccess($session))
{
	header('HTTP/1.1 403 Forbidden', true, 403);
	throw new UserException('Vous n\'avez pas accès à ce fichier.');
}