mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +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();
|
||||
if ($latestContent->getVersion()==$version->getVersion()) {
|
||||
header("Location:../out/out.ViewDocument.php?documentid=".$document->getID());
|
||||
exit;
|
||||
}
|
||||
|
||||
$folder = $document->getFolder();
|
||||
|
|
|
@ -56,6 +56,7 @@ if ($document->getAccessMode($user) < M_READ) {
|
|||
*/
|
||||
if ($document->verifyLastestContentExpriry()){
|
||||
header("Location:../out/out.ViewDocument.php?documentid=".$document->getID());
|
||||
exit;
|
||||
}
|
||||
|
||||
if($view) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user