take over expdate from POST (date is not checked)

This commit is contained in:
Uwe Steinmann 2017-03-01 08:05:39 +01:00
parent 5df25ce082
commit 774f77e9e1

View File

@ -55,7 +55,10 @@ $version = $document->getContentByVersion($version_num);
if (!is_object($version)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
$expiration = null;
if (isset($_POST["expdate"]))
$expiration = $_POST["expdate"];
else
$expiration = null;
if($version->createDownloadLink($user, $expiration)) {
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_create_download_link')));