Overview
Comment:Remplacer /admin/ par "/" sinon on risque d'avoir une chaîne vide
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA1: 3789725be5e1db06b8ab63197faf1521e0939e55
User & Date: bohwaz on 2018-04-19 11:40:03
Other Links: manifest | tags
Context
2018-04-20
06:02
Échapper le nom des champs dans la table membres afin d'éviter les soucis avec les mots-clés réservés par SQLite (erreur #acngifop) check-in: 2c0b1a65c4 user: bohwaz tags: trunk, stable
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
Changes

Modified src/include/lib/Garradin/Membres/Session.php from [5ca0ca9b33] to [a70c8a8c51].

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
	// Extension des méthodes de UserSession
	public function __construct()
	{
		$url = parse_url(ADMIN_URL);

		parent::__construct(DB::getInstance(), [
			'cookie_domain' => $url['host'],
			'cookie_path'   => preg_replace('!/admin/$!', '', $url['path']),
			'cookie_secure' => (\Garradin\PREFER_HTTPS >= 2) ? true : false,
		]);
	}

	protected function getUserForLogin($login)
	{
		$champ_id = Config::getInstance()->get('champ_identifiant');







|







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
	// Extension des méthodes de UserSession
	public function __construct()
	{
		$url = parse_url(ADMIN_URL);

		parent::__construct(DB::getInstance(), [
			'cookie_domain' => $url['host'],
			'cookie_path'   => preg_replace('!/admin/$!', '/', $url['path']),
			'cookie_secure' => (\Garradin\PREFER_HTTPS >= 2) ? true : false,
		]);
	}

	protected function getUserForLogin($login)
	{
		$champ_id = Config::getInstance()->get('champ_identifiant');