diff options
author | cash <cash.costello@gmail.com> | 2011-07-02 10:17:56 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-07-02 10:17:56 -0400 |
commit | b307bcbdc8b0f269a5408a824dc4a7c3c2e9570f (patch) | |
tree | bc7c1be970781269e88518eddb6c8095d14462c7 /mod/embed/start.php | |
parent | 44fe4374af3550676d08320927bf4824bbd43441 (diff) | |
download | elgg-b307bcbdc8b0f269a5408a824dc4a7c3c2e9570f.tar.gz elgg-b307bcbdc8b0f269a5408a824dc4a7c3c2e9570f.tar.bz2 |
fixed embed plugin for #3544
Diffstat (limited to 'mod/embed/start.php')
-rw-r--r-- | mod/embed/start.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/embed/start.php b/mod/embed/start.php index f6f1acc57..bdd832b4e 100644 --- a/mod/embed/start.php +++ b/mod/embed/start.php @@ -81,8 +81,10 @@ function embed_page_handler($page) { elgg_sort_3d_array_by_value($sections, 'name'); elgg_sort_3d_array_by_value($upload_sections, 'name'); - $active_section = get_input('active_section', NULL); - $internal_id = get_input('internal_id', NULL); + $active_section = get_input('active_section', ''); + $active_section = preg_replace('[\W]', '', $active_section); + $internal_id = get_input('internal_id', ''); + $internal_id = preg_replace('[\W]', '', $internal_id); echo elgg_view('embed/embed', array( 'sections' => $sections, |