Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
b19c982f
Commit
b19c982f
authored
11 years ago
by
Oleg Marshev
Browse files
Options
Downloads
Patches
Plain Diff
Allow any part of protocol name to be lowercase or uppercase (BLD-496).
parent
5aa19c08
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cms/djangoapps/contentstore/views/item.py
+1
-1
1 addition, 1 deletion
cms/djangoapps/contentstore/views/item.py
with
1 addition
and
1 deletion
cms/djangoapps/contentstore/views/item.py
+
1
−
1
View file @
b19c982f
...
...
@@ -142,7 +142,7 @@ def save_item(request):
# security will reject non-https URLs anyway.
# Also, following video module specific code is here, because front-end
# metadata fields doesn't support validation.
if
metadata_key
==
'
html5_sources
'
and
not
all
([
parse_url
(
u
).
scheme
in
allowedSchemes
for
u
in
value
]):
if
metadata_key
==
'
html5_sources
'
and
not
all
([
parse_url
(
u
).
scheme
.
lower
()
in
allowedSchemes
for
u
in
value
]):
raise
ValidationError
(
u
'
HTML5 video sources support following protocols: {0}.
'
.
format
(
'
'
.
join
(
allowedSchemes
)))
# Save the data that we've just changed to the underlying
# MongoKeyValueStore before we update the mongo datastore.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment