Overview
SHA1:5004acdf3a4e94cbdaa8ab2a26f2e6a9f423db17
Date: 2017-01-16 21:38:40
User: bohwaz
Comment:Fix plugin name match in router
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2017-01-16
22:50
[1b8f3acdcc] Plugin : add context for uninstall too (user: bohwaz, tags: trunk)
21:38
[5004acdf3a] Fix plugin name match in router (user: bohwaz, tags: trunk)
21:38
[addaea15a9] Fix don't try to fetch plugin directories (user: bohwaz, tags: trunk)
Changes

Modified src/www/_route.php from [63daf0cfc2] to [87c48a8fb1].

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
	$uri = substr($uri, 0, $pos);
}

if (file_exists(__DIR__ . $uri))
{
	return false;
}
elseif (preg_match('!/admin/plugin/(.+)/(.*)!', $uri, $match))
{
	$_GET['_p'] = $match[1];
	$_GET['_u'] = $match[2];
	require __DIR__ . '/admin/plugin.php';
}
elseif (preg_match('!/f/([\d\w]+)/(.+)!', $uri, $match))
{







|







14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
	$uri = substr($uri, 0, $pos);
}

if (file_exists(__DIR__ . $uri))
{
	return false;
}
elseif (preg_match('!/admin/plugin/(.+?)/(.*)!', $uri, $match))
{
	$_GET['_p'] = $match[1];
	$_GET['_u'] = $match[2];
	require __DIR__ . '/admin/plugin.php';
}
elseif (preg_match('!/f/([\d\w]+)/(.+)!', $uri, $match))
{