diff options
author | Brett Profitt <brett.profitt@gmail.com> | 2011-09-28 22:13:22 -0700 |
---|---|---|
committer | Brett Profitt <brett.profitt@gmail.com> | 2011-09-28 22:13:22 -0700 |
commit | 672bca794418ffa5544319de1a8ecfed3f088bd0 (patch) | |
tree | 083699f3d6dce899fa4045aaeec5b4a53f775025 /mod/file/pages | |
parent | 7185782ef2b0279757d3ad187f0fec06b37185c3 (diff) | |
download | elgg-672bca794418ffa5544319de1a8ecfed3f088bd0.tar.gz elgg-672bca794418ffa5544319de1a8ecfed3f088bd0.tar.bz2 |
Fixes #3823. More carefully casting to int for file's search.
Diffstat (limited to 'mod/file/pages')
-rw-r--r-- | mod/file/pages/file/search.php | 7 |
1 files changed, 6 insertions, 1 deletions
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); } |