]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #3661. Better filtering for container_guid in pages.
authorBrett Profitt <brett.profitt@gmail.com>
Mon, 5 Sep 2011 00:35:17 +0000 (17:35 -0700)
committerBrett Profitt <brett.profitt@gmail.com>
Mon, 5 Sep 2011 00:35:17 +0000 (17:35 -0700)
mod/pages/pages/pages/edit.php

index e6c2ea015f8c062c413ae3516918d3c9c437bfaf..6f54d72bfe4b20e4c9cd03b460a60dee91834342 100644 (file)
@@ -7,15 +7,15 @@
 
 gatekeeper();
 
-$page_guid = get_input('guid');
+$page_guid = (int)get_input('guid');
 $page = get_entity($page_guid);
 if (!$page) {
-
+       
 }
 
 $container = $page->getContainerEntity();
 if (!$container) {
-
+       
 }
 
 elgg_set_page_owner_guid($container->getGUID());