Changeset 1374
- Timestamp:
- 09/30/08 05:30:55 (4 years ago)
- Location:
- trunk/wifidog
- Files:
-
- 2 modified
-
ChangeLog (modified) (1 diff)
-
src/centralserver.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog/ChangeLog
r1373 r1374 2 2 3 3 2008-09-30 Wichert Akkerman <wichert@wiggy.net> 4 * Clean up compiler warnings (mostly signed/unsigned comparisons) 4 * URL encode the token before transmitting (it was already decoded). 5 Fixes ticket #473 6 * Clean up compiler warnings. 5 7 * Security: strncpy may not NUL-terminate strings, so enforce this 6 ourselves. 7 * Make it possible to protect the status page 8 ourselves. Fixes ticket #464 9 * Make it possible to protect the status page. Fixes ticket #463. 8 10 9 11 2008-07-20 Alexandre Carmel-Veilleux <acv@miniguru.ca> -
trunk/wifidog/src/centralserver.c
r1373 r1374 70 70 char buf[MAX_BUF]; 71 71 char *tmp; 72 char *safe_token; 72 73 int done, nfds; 73 74 fd_set readfds; … … 90 91 */ 91 92 memset(buf, 0, sizeof(buf)); 93 safe_token=httpdUrlEncode(token); 92 94 snprintf(buf, (sizeof(buf) - 1), 93 95 "GET %s%sstage=%s&ip=%s&mac=%s&token=%s&incoming=%llu&outgoing=%llu HTTP/1.0\r\n" … … 100 102 ip, 101 103 mac, 102 token,104 safe_token, 103 105 incoming, 104 106 outgoing, … … 106 108 auth_server->authserv_hostname 107 109 ); 110 111 free(safe_token); 108 112 109 113 debug(LOG_DEBUG, "Sending HTTP request to auth server: [%s]\n", buf);
