]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Remove filtering on URL input
authorSteve Clay <steve@mrclay.org>
Tue, 10 Apr 2012 14:43:51 +0000 (10:43 -0400)
committerSteve Clay <steve@mrclay.org>
Tue, 10 Apr 2012 14:43:51 +0000 (10:43 -0400)
actions/videolist/edit.php
start.php

index fe614cd5a336706adc38b45a764b4b0bd035db24..480a3943b7c0f25d01c13f73d8d2a1bc4d9bd115 100644 (file)
@@ -8,7 +8,8 @@
 $variables = elgg_get_config('videolist');\r
 $input = array();\r
 foreach ($variables as $name => $type) {\r
-       $input[$name] = get_input($name);\r
+    $filter_input = ($name !== 'video_url');\r
+       $input[$name] = get_input($name, null, $filter_input);\r
        if ($name == 'title') {\r
                $input[$name] = strip_tags($input[$name]);\r
        }\r
index f423b75ed1a976bb3e0ed60928deceecdf70f862..2791b1185b23315c9adcb2d71df6d421a74e1fed 100644 (file)
--- 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('&amp;', '&', $returnvalue);
-
     $parsed = parse_url($returnvalue);
     if (empty($parsed['host']) && ! empty($parsed['path']) && $parsed['path'][0] !== '/') {
         // user probably forgot scheme