Published in <sxsheruo5gn.fsf@florida.arsdigita.de>.
+2001-11-16 Hrvoje Niksic <hniksic@arsdigita.com>
+
+ * headers.c (header_extract_number): Ignore trailing whitespace.
+
2001-08-24 Ian Abbott <abbotti@mev.co.uk>
* html-url.c (collect_tags_mapper): Fix bug converting links
for (result = 0; ISDIGIT (*p); p++)
result = 10 * result + (*p - '0');
+
+ /* Failure if no number present. */
+ if (p == header)
+ return 0;
+
+ /* Skip trailing whitespace. */
+ p += skip_lws (p);
+
+ /* Indicate failure if trailing garbage is present. */
if (*p)
return 0;