Overview
Comment:Fix plugin name match in router
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5004acdf3a4e94cbdaa8ab2a26f2e6a9f423db17
User & Date: bohwaz on 2017-01-16 21:38:40
Other Links: manifest | tags
References
2020-12-08
23:25 Wiki page "Changelog/0.9" artifact: b9c916b4d1 user: bohwaz
Context
2017-01-16
22:50
Plugin : add context for uninstall too check-in: 1b8f3acdcc user: bohwaz tags: trunk
21:38
Fix plugin name match in router check-in: 5004acdf3a user: bohwaz tags: trunk
21:38
Fix don't try to fetch plugin directories check-in: addaea15a9 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))
{