diff options
author | Steve Clay <steve@mrclay.org> | 2012-04-10 10:43:51 -0400 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2012-04-10 10:43:51 -0400 |
commit | c70ec6161e4ef4d0daee6514da0a4d4e6b183207 (patch) | |
tree | f0fd44cc12b3ba250c369825fecc57b22233d3d0 | |
parent | 595f87c960f0d0b01ebd386686d522f25fa56b91 (diff) | |
download | elgg-c70ec6161e4ef4d0daee6514da0a4d4e6b183207.tar.gz elgg-c70ec6161e4ef4d0daee6514da0a4d4e6b183207.tar.bz2 |
Remove filtering on URL input
-rw-r--r-- | actions/videolist/edit.php | 3 | ||||
-rw-r--r-- | 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]);
}
@@ -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 |