projects
/
blerg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b8df1ce
)
Whoops, checking too many bytes for /subscribe
author
Chip Black
<bytex64@bytex64.net>
Sun, 27 Feb 2011 10:50:25 +0000
(
04:50
-0600)
committer
Chip Black
<bytex64@bytex64.net>
Sun, 27 Feb 2011 10:50:25 +0000
(
04:50
-0600)
cgi/cgi_blerg.c
patch
|
blob
|
history
diff --git
a/cgi/cgi_blerg.c
b/cgi/cgi_blerg.c
index
1bba24d
..
664d6a5
100644
(file)
--- 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);