Overview
Comment:Correction typo pour le cas où on utilise le serveur web de PHP
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable | 0.9.6
Files: files | file ages | folders
SHA1: a76b6b65e311838d9ecaba2877e5c59a447a97e2
User & Date: bohwaz on 2020-05-01 14:07:19
Other Links: manifest | tags
Context
2020-05-01
16:48
Fix missing file check-in: 9f520c527c user: bohwaz tags: trunk, stable, 0.9.6
14:07
Correction typo pour le cas où on utilise le serveur web de PHP check-in: a76b6b65e3 user: bohwaz tags: trunk, stable, 0.9.6
13:58
Mise à jour de version check-in: dd26a101b7 user: bohwaz tags: trunk, stable, 0.9.6
Changes

Modified src/www/_route.php from [d864c66523] to [c720a9392c].

15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
if (($pos = strpos($uri, '?')) !== false)
{
	$uri = substr($uri, 0, $pos);
}

if (file_exists(__DIR__ . $uri))
{
	if (PHP_SAPI != 'cli') {
		die('Erreur de configuration du serveur web: cette URL ne devrait pas être traitée par Garradin');
	}

	return false;
}
elseif (preg_match('!/p/(.+?)/(.*)!', $uri, $match))
{







|







15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
if (($pos = strpos($uri, '?')) !== false)
{
	$uri = substr($uri, 0, $pos);
}

if (file_exists(__DIR__ . $uri))
{
	if (PHP_SAPI != 'cli-server') {
		die('Erreur de configuration du serveur web: cette URL ne devrait pas être traitée par Garradin');
	}

	return false;
}
elseif (preg_match('!/p/(.+?)/(.*)!', $uri, $match))
{