jeanpaul/jqawstats — pull request #5 by mjholtkamp (2013-06-06 07:33:27+00:00)
Title: Corrupt awstats state file handling

Sometimes AWStats generates state files that are corrupt (the fields are in the wrong order, or extra fields are added. The next AWStats run this is corrected again, but in the mean time, the stats of that category are not available.

This patch does a sanity check if the date exists, so the javascript doesn't crash. If the date is invalid, the entry is shown as 'AWStats file parse error'.