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,6 +55,9 @@ $version = $document->getContentByVersion($version_num);
if (!is_object($version)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
if (isset($_POST["expdate"]))
$expiration = $_POST["expdate"];
else
$expiration = null;
if($version->createDownloadLink($user, $expiration)) {