From c70ec6161e4ef4d0daee6514da0a4d4e6b183207 Mon Sep 17 00:00:00 2001 From: Steve Clay Date: Tue, 10 Apr 2012 10:43:51 -0400 Subject: Remove filtering on URL input --- actions/videolist/edit.php | 3 ++- start.php | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/actions/videolist/edit.php b/actions/videolist/edit.php index fe614cd5a..480a3943b 100644 --- a/actions/videolist/edit.php +++ b/actions/videolist/edit.php @@ -8,7 +8,8 @@ $variables = elgg_get_config('videolist'); $input = array(); foreach ($variables as $name => $type) { - $input[$name] = get_input($name); + $filter_input = ($name !== 'video_url'); + $input[$name] = get_input($name, null, $filter_input); if ($name == 'title') { $input[$name] = strip_tags($input[$name]); } diff --git a/start.php b/start.php index f423b75ed..2791b1185 100644 --- a/start.php +++ b/start.php @@ -297,9 +297,6 @@ function videolist_icon_url_override($hook, $type, $returnvalue, $params) { * @return string */ function videolist_preprocess_url($hook, $type, $returnvalue, $params) { - // undo get_input (htmlawed's) HTML-encoding - $returnvalue = str_replace('&', '&', $returnvalue); - $parsed = parse_url($returnvalue); if (empty($parsed['host']) && ! empty($parsed['path']) && $parsed['path'][0] !== '/') { // user probably forgot scheme -- cgit v1.2.3