1.30b - Support <button> tag and fix compiler warnings

- Support for the (rare) <button> tag in forms.
- Fixed compiler warning on some platforms.
This commit is contained in:
Steve Pinkham 2010-04-08 22:03:37 -04:00
parent 9236e119f7
commit 095e83d582
4 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,10 @@
Version 1.30b:
--------------
- Support for the (rare) <button> tag in forms.
- Fixed compiler warning on some platforms.
Version 1.29b:
--------------

View File

@ -394,7 +394,7 @@ static u8 maybe_xsrf(u8* token) {
static u8 tm_prefix[8];
if (!tm_prefix[0])
sprintf((char*)tm_prefix, "%lu", time(0) / 100000);
sprintf((char*)tm_prefix, "%lu", (long int)(time(0) / 100000));
/* Unix time is not a valid token. */
@ -470,7 +470,7 @@ static void collect_form_data(struct http_request* req,
}
if (ISTAG(cur_str, "input") || ISTAG(cur_str, "textarea") ||
ISTAG(cur_str, "select")) {
ISTAG(cur_str, "select") || ISTAG(cur_str, "button")) {
u8 *tag_name, *tag_value, *tag_type, *clean_name = NULL,
*clean_value = NULL;

View File

@ -23,7 +23,7 @@
#ifndef _HAVE_CONFIG_H
#define _HAVE_CONFIG_H
#define VERSION "1.29b"
#define VERSION "1.30b"
#define USE_COLOR 1 /* Use terminal colors */

View File

@ -1256,8 +1256,6 @@ u8 parse_response(struct http_request* req, struct http_response* res,
if (!strcasecmp((char*)x, "close")) must_close = 1;
}
}