From: Brett Profitt Date: Thu, 29 Sep 2011 05:13:22 +0000 (-0700) Subject: Fixes #3823. More carefully casting to int for file's search. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=672bca794418ffa5544319de1a8ecfed3f088bd0;p=lorea%2Felgg.git Fixes #3823. More carefully casting to int for file's search. --- diff --git a/mod/file/pages/file/search.php b/mod/file/pages/file/search.php index 569657fd4..402a28933 100644 --- a/mod/file/pages/file/search.php +++ b/mod/file/pages/file/search.php @@ -5,7 +5,12 @@ * @package ElggFile */ -$page_owner_guid = (int)get_input('page_owner', null); +$page_owner_guid = get_input('page_owner', null); + +if ($page_owner_guid !== null) { + $page_owner_guid = sanitise_int($page_owner_guid); +} + if ($page_owner_guid) { elgg_set_page_owner_guid($page_owner_guid); }