aboutsummaryrefslogtreecommitdiff
path: root/actions/videolist
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2011-11-09 20:24:56 +0100
committerSem <sembrestels@riseup.net>2011-11-09 20:24:56 +0100
commitf2280654f8aaa33964e62c27a9cab6c96372ba57 (patch)
treef4a8ee2d358d6f8d55ec9875fcce49550d16ba2f /actions/videolist
parentb0f15fbebe3781626ba6b086d63ed364f6822209 (diff)
downloadelgg-f2280654f8aaa33964e62c27a9cab6c96372ba57.tar.gz
elgg-f2280654f8aaa33964e62c27a9cab6c96372ba57.tar.bz2
No regexp when parsing urls. Blip.tv support added. Style added. Fixed edit action.
Diffstat (limited to 'actions/videolist')
-rw-r--r--actions/videolist/edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/videolist/edit.php b/actions/videolist/edit.php
index 2ca99c1c4..f9db7b6a2 100644
--- a/actions/videolist/edit.php
+++ b/actions/videolist/edit.php
@@ -32,8 +32,9 @@ if (!$input['video_url']) {
$parsed_url = videolist_parseurl($input['video_url']);
-if(!$parsed) {
+if(!$parsed_url) {
register_error(elgg_echo('videolist:error:invalid_url'));
+ forward(REFERER);
}
if ($video_guid) {