From d7b13cb4340b4a9c182962c7d451faecbe0948ab Mon Sep 17 00:00:00 2001 From: Chip Black Date: Sun, 27 Feb 2011 04:50:25 -0600 Subject: [PATCH] Whoops, checking too many bytes for /subscribe --- cgi/cgi_blerg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cgi/cgi_blerg.c b/cgi/cgi_blerg.c index 1bba24d..664d6a5 100644 --- a/cgi/cgi_blerg.c +++ b/cgi/cgi_blerg.c @@ -329,8 +329,7 @@ int main(int argc, char *argv[]) { 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); -- 2.25.1