Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
47a2122a
Commit
47a2122a
authored
Aug 09, 2013
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Require edx:// for urls
But don't use this parser for urls embedded in a browser url request.
parent
1b63ecab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
common/lib/xmodule/xmodule/modulestore/parsers.py
+5
-5
No files found.
common/lib/xmodule/xmodule/modulestore/parsers.py
View file @
47a2122a
...
@@ -21,8 +21,8 @@ def parse_url(string):
...
@@ -21,8 +21,8 @@ def parse_url(string):
'edx://version/0123FFFF'
'edx://version/0123FFFF'
'edx://mit.eecs.6002x'
'edx://mit.eecs.6002x'
'edx://mit.eecs.6002x;published'
'edx://mit.eecs.6002x;published'
'edx://mit.eecs.6002x;published
#
HW3'
'edx://mit.eecs.6002x;published
/block/
HW3'
'edx://mit.eecs.6002x;published
@000eee12345#
HW3'
'edx://mit.eecs.6002x;published
/version/000eee12345/block/
HW3'
This returns None if string cannot be parsed.
This returns None if string cannot be parsed.
...
@@ -98,9 +98,9 @@ def parse_course_id(string):
...
@@ -98,9 +98,9 @@ def parse_course_id(string):
Examples of valid course_ids:
Examples of valid course_ids:
'mit.eecs.6002x'
'mit.eecs.6002x'
'mit.eecs.6002x
;
published'
'mit.eecs.6002x
/branch/
published'
'mit.eecs.6002x
#
HW3'
'mit.eecs.6002x
/block/
HW3'
'mit.eecs.6002x
;published#
HW3'
'mit.eecs.6002x
/branch/published/block/
HW3'
'mit.eecs.6002x/branch/published/version/519665f6223ebd6980884f2b/block/HW3'
'mit.eecs.6002x/branch/published/version/519665f6223ebd6980884f2b/block/HW3'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment