mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-29 10:53:33 +00:00
take over expdate from POST (date is not checked)
This commit is contained in:
parent
5df25ce082
commit
774f77e9e1
|
|
@ -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')));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user