Revert "BLD-408: Don't allow users to enter video url's in http."
This reverts commit 6cb5c3900f.
This commit is contained in:
@@ -24,13 +24,17 @@ function ($, _, Utils, _str) {
|
||||
|
||||
} (videoId)),
|
||||
html5FileName = 'file_name',
|
||||
html5LinksList = (function (videoName) {
|
||||
html5LinksList = (function (videoName) {
|
||||
var videoTypes = ['mp4', 'webm'],
|
||||
links = [
|
||||
'https://somelink.com/%s.%s?param=1¶m=2#hash',
|
||||
'https://somelink.com/%s.%s#hash',
|
||||
'https://somelink.com/%s.%s?param=1¶m=2',
|
||||
'https://somelink.com/%s.%s'
|
||||
'http://somelink.com/%s.%s?param=1¶m=2#hash',
|
||||
'http://somelink.com/%s.%s#hash',
|
||||
'http://somelink.com/%s.%s?param=1¶m=2',
|
||||
'http://somelink.com/%s.%s',
|
||||
'ftp://somelink.com/%s.%s',
|
||||
'https://somelink.com/%s.%s',
|
||||
'somelink.com/%s.%s',
|
||||
'%s.%s'
|
||||
],
|
||||
data = {};
|
||||
|
||||
@@ -186,12 +190,7 @@ function ($, _, Utils, _str) {
|
||||
'http://google.com/somevideo_mp4',
|
||||
'http://google.com/somevideo:mp4',
|
||||
'http://google.com/somevideo',
|
||||
'http://google.com/somevideo.webm_',
|
||||
'http://somelink.com/video_name.mp4?param=1¶m=2#hash',
|
||||
'http://somelink.com/video_name.webm',
|
||||
'ftp://somelink.com/video_name.mp4',
|
||||
'somelink.com/video_name.webm',
|
||||
'video_name.mp4'
|
||||
'http://google.com/somevideo.webm_'
|
||||
];
|
||||
|
||||
$.each(html5WrongUrls, function (index, link) {
|
||||
|
||||
Reference in New Issue
Block a user