aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2012-04-10 10:43:51 -0400
committerSteve Clay <steve@mrclay.org>2012-04-10 10:43:51 -0400
commitc70ec6161e4ef4d0daee6514da0a4d4e6b183207 (patch)
treef0fd44cc12b3ba250c369825fecc57b22233d3d0
parent595f87c960f0d0b01ebd386686d522f25fa56b91 (diff)
downloadelgg-c70ec6161e4ef4d0daee6514da0a4d4e6b183207.tar.gz
elgg-c70ec6161e4ef4d0daee6514da0a4d4e6b183207.tar.bz2
Remove filtering on URL input
-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('&amp;', '&', $returnvalue);
-
$parsed = parse_url($returnvalue);
if (empty($parsed['host']) && ! empty($parsed['path']) && $parsed['path'][0] !== '/') {
// user probably forgot scheme