|
From: <no...@so...> - 2002-07-10 11:29:43
|
Patches item #579581, was opened at 2002-07-10 11:29 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=304593&aid=579581&group_id=4593 Category: stable Group: None Status: Open Resolution: None Priority: 5 Submitted By: Seb Wills (sebwills) Assigned to: Nobody/Anonymous (nobody) Summary: bug fix: parsing of date meta header Initial Comment: I found a bug in htdig/Retreiver.cc which prevents it from correctly parsing YYYY-MM-DD dates in date meta headers (it requires a space, rather than allowing a hyphen, between YYYY and MM). The patch (below) is trivial. This is for the 3.1.6 source - I haven't checked whether the problem is fixed in the 3.2 source. casi@sphinx$ diff -c Retriever.cc~ Retriever.cc *** Retriever.cc~ Thu Jan 31 23:47:17 2002 --- Retriever.cc Wed Jul 10 00:38:05 2002 *************** *** 1139,1145 **** year += 1900; else if (year >= 19100) // seen some programs do it, why not check? year -= (19100-2000); ! while (isspace(*s)) s++; // get month... --- 1139,1145 ---- year += 1900; else if (year >= 19100) // seen some programs do it, why not check? year -= (19100-2000); ! while (*s == '-' || isspace(*s)) s++; // get month... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=304593&aid=579581&group_id=4593 |