From 114f948f36cbfa3e8a537ed1cd43256802e75a09 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 5 Aug 2008 09:54:55 +0000 Subject: Ignore blank maxlength attributes svn path=/trunk/netsurf/; revision=4912 --- render/box_construct.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/render/box_construct.c b/render/box_construct.c index df7aedafc..e0b1f50c8 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -2399,7 +2399,8 @@ bool box_input_text(BOX_SPECIAL_PARAMS, bool password) box->gadget->box = box; if ((s = (char *) xmlGetProp(n, (const xmlChar *) "maxlength"))) { - box->gadget->maxlength = atoi(s); + if (s[0] != '\0') + box->gadget->maxlength = atoi(s); xmlFree(s); } -- cgit v1.2.3