aboutsummaryrefslogtreecommitdiff
path: root/actions/videolist
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2012-04-10 09:51:20 -0400
committerSteve Clay <steve@mrclay.org>2012-04-10 09:51:20 -0400
commit6d4ac854d8f0a4480ffe16f2bd2a7861707074ee (patch)
tree5ef9a631f8acecf694065425edefd5ee78d45d1b /actions/videolist
parentcb27322b1421bd4cb2ce1889c38da5c8666d68f2 (diff)
downloadelgg-6d4ac854d8f0a4480ffe16f2bd2a7861707074ee.tar.gz
elgg-6d4ac854d8f0a4480ffe16f2bd2a7861707074ee.tar.bz2
Move URL preprocessing to hook
Diffstat (limited to 'actions/videolist')
-rw-r--r--actions/videolist/edit.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/actions/videolist/edit.php b/actions/videolist/edit.php
index 107cdc917..fe614cd5a 100644
--- a/actions/videolist/edit.php
+++ b/actions/videolist/edit.php
@@ -27,14 +27,14 @@ elgg_load_library('elgg:videolist');
// If new video, get data from video providers
if(!$video_guid) {
- if (!$input['video_url']) {
+
+ $input['video_url'] = elgg_trigger_plugin_hook('videolist:preprocess', 'url', $input, $input['video_url']);
+
+ if (!$input['video_url']) {
register_error(elgg_echo('videolist:error:no_url'));
forward(REFERER);
}
- // get_input (htmlawed) "fixes" URLs by breaking them
- $input['video_url'] = str_replace('&amp;', '&', $input['video_url']);
-
$parsedPlatform = videolist_parse_url($input['video_url']);
if (!$parsedPlatform) {