aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/videolist/edit.php3
-rw-r--r--start.php3
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