add exit() after calling header('Location: ..')

This commit is contained in:
Uwe Steinmann 2017-01-01 14:47:20 +01:00
parent 4709e98429
commit 5796ccdf06
2 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,7 @@ if (!is_object($version)) {
$latestContent = $document->getLatestContent(); $latestContent = $document->getLatestContent();
if ($latestContent->getVersion()==$version->getVersion()) { if ($latestContent->getVersion()==$version->getVersion()) {
header("Location:../out/out.ViewDocument.php?documentid=".$document->getID()); header("Location:../out/out.ViewDocument.php?documentid=".$document->getID());
exit;
} }
$folder = $document->getFolder(); $folder = $document->getFolder();

View File

@ -56,6 +56,7 @@ if ($document->getAccessMode($user) < M_READ) {
*/ */
if ($document->verifyLastestContentExpriry()){ if ($document->verifyLastestContentExpriry()){
header("Location:../out/out.ViewDocument.php?documentid=".$document->getID()); header("Location:../out/out.ViewDocument.php?documentid=".$document->getID());
exit;
} }
if($view) { if($view) {