mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +00:00
add exit() after calling header('Location: ..')
This commit is contained in:
parent
4709e98429
commit
5796ccdf06
|
@ -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();
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user