diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/videolist.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/videolist.php b/lib/videolist.php index 93b27b51c..776ce7093 100644 --- a/lib/videolist.php +++ b/lib/videolist.php @@ -29,6 +29,10 @@ function videolist_get_default_platforms() { */ function videolist_parse_url($url) { $parsed = parse_url($url); + if (empty($parsed['host']) && ! empty($parsed['path']) && $parsed['path'][0] !== '/') { + // user probably forgot scheme + $url = 'http://' . $url; + } $params['url'] = $url; $platforms = videolist_get_default_platforms(); $platforms = elgg_trigger_plugin_hook('videolist:prepare', 'platforms', $params, $platforms); |