aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2013-09-13 05:27:24 -0700
committerSteve Clay <steve@mrclay.org>2013-09-13 05:27:24 -0700
commitd3ae577f3a7c08c1e3add6eaff1b09661127d4f6 (patch)
tree0c6fc14868b01b51a6e669cecf881394eac00456
parentc62701785c3c5190f6a40c4883de8212604283e6 (diff)
parente02239465b538d0364043e4e8613279eb04408f8 (diff)
downloadelgg-d3ae577f3a7c08c1e3add6eaff1b09661127d4f6.tar.gz
elgg-d3ae577f3a7c08c1e3add6eaff1b09661127d4f6.tar.bz2
Merge pull request #6058 from beck24/pages-nonobject
Return 404 for history of not-found pages
-rw-r--r--mod/pages/pages/pages/history.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/pages/pages/pages/history.php b/mod/pages/pages/pages/history.php
index 872596179..7f5fa4f4f 100644
--- a/mod/pages/pages/pages/history.php
+++ b/mod/pages/pages/pages/history.php
@@ -9,12 +9,12 @@ $page_guid = get_input('guid');
$page = get_entity($page_guid);
if (!$page) {
-
+ forward('', '404');
}
$container = $page->getContainerEntity();
if (!$container) {
-
+ forward('', '404');
}
elgg_set_page_owner_guid($container->getGUID());