diff --git a/archive/community.applications-2017.09.17.txz b/archive/community.applications-2017.09.17.txz new file mode 100644 index 00000000..1bd38563 Binary files /dev/null and b/archive/community.applications-2017.09.17.txz differ diff --git a/source/community.applications/usr/local/emhttp/plugins/community.applications/include/helpers.php b/source/community.applications/usr/local/emhttp/plugins/community.applications/include/helpers.php index f79bacd1..c76f5766 100644 --- a/source/community.applications/usr/local/emhttp/plugins/community.applications/include/helpers.php +++ b/source/community.applications/usr/local/emhttp/plugins/community.applications/include/helpers.php @@ -280,7 +280,11 @@ function fixTemplates($template) { $template['Beta'] = strtolower(stripslashes($template['Beta'])); } $template['Date'] = ( $template['Date'] ) ? strtotime( $template['Date'] ) : 0; - + if ( $template['Date'] > strtotime("+2 day") ) { + $template['Date'] = 0; + $statistics['fixedTemplates'][$template['Repo']][$template['Repository']][] = "Invalid Date Updated (More than 2 days in the future) Format used probably not in http://php.net/manual/en/datetime.formats.date.php"; + } + if ( ! $template['MinVer'] ) { $template['MinVer'] = $template['Plugin'] ? "6.1" : "6.0"; }