auth_logout(username);
respond_JSON_Success();
- } else if (strncmp(path, "/subscribe", 11) == 0 || strncmp(path, "/unsubscribe", 13) == 0) {
-
+ } else if (strncmp(path, "/subscribe", 10) == 0 || strncmp(path, "/unsubscribe", 12) == 0) {
const char *username = cgi_getentrystr("username");
if (!check_auth(username))
exit(0);