Merge pull request #2328 from chillu/pulls/versioned-archivemode-validation

Validate 'archiveDate' user data in Versioned
This commit is contained in:
Sean Harvey 2013-10-03 14:33:22 -07:00
commit 8b2e1f2e7c

View File

@ -841,7 +841,7 @@ class Versioned extends DataExtension {
Session::set('readingMode', 'Stage.' . $stage);
}
if(isset($_GET['archiveDate'])) {
if(isset($_GET['archiveDate']) && strtotime($_GET['archiveDate'])) {
Session::set('readingMode', 'Archive.' . $_GET['archiveDate']);
}