Fix app manager parse applet name issue (#280)

This commit is contained in:
wenyongh
2020-06-11 14:19:55 +08:00
committed by GitHub
parent 7a287fd1a9
commit 10980a1dd7
4 changed files with 5 additions and 4 deletions

View File

@ -71,7 +71,7 @@ void targeted_app_request_handler(request_t *request, void *unused)
}
strncpy(applet_name, request->url + offset, sizeof(applet_name) - 1);
char *p = strrchr(applet_name, '/');
char *p = strchr(applet_name, '/');
if (p) {
*p = 0;
} else