BLD-967: Fix regExp.

This commit is contained in:
polesye
2014-05-27 13:31:18 +03:00
parent 926ce567a6
commit db213bf325
4 changed files with 547 additions and 573 deletions

View File

@@ -37,6 +37,7 @@ from .video_handlers import VideoStudentViewHandlers, VideoStudioViewHandlers
from urlparse import urlparse
def get_ext(filename):
# Prevent incorrectly parsing urls like 'http://abc.com/path/video.mp4?xxxx'.
path = urlparse(filename).path