mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2328 from chillu/pulls/versioned-archivemode-validation
Validate 'archiveDate' user data in Versioned
This commit is contained in:
commit
8b2e1f2e7c
@ -841,7 +841,7 @@ class Versioned extends DataExtension {
|
|||||||
|
|
||||||
Session::set('readingMode', 'Stage.' . $stage);
|
Session::set('readingMode', 'Stage.' . $stage);
|
||||||
}
|
}
|
||||||
if(isset($_GET['archiveDate'])) {
|
if(isset($_GET['archiveDate']) && strtotime($_GET['archiveDate'])) {
|
||||||
Session::set('readingMode', 'Archive.' . $_GET['archiveDate']);
|
Session::set('readingMode', 'Archive.' . $_GET['archiveDate']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user