Commit 059ff4cf6778bb8982c6b2e95ea08fe925b5c241
1 parent
1fef1f9f
Exists in
master
Encode dynamic URLs
Showing
1 changed file
with
2 additions
and
3 deletions
Show diff stats
view/js/helpers/video-helper.js
1 | 1 | (function(videoHelper, $, undefined) { |
2 | 2 | |
3 | 3 | function _getSource(videoBaseUrl) { |
4 | - return '<source src="' + videoBaseUrl + '.webm" type="video/webm">' | |
5 | - + '<source src="' + videoBaseUrl | |
6 | - + '.mp4" type="video/mp4">Sem suporte a vídeos'; | |
4 | + return '<source src="' + encodeURI(videoBaseUrl + '.webm') + '" type="video/webm">' | |
5 | + + '<source src="' + encodeURI(videoBaseUrl + '.mp4') + '" type="video/mp4">Sem suporte a vídeos'; | |
7 | 6 | } |
8 | 7 | |
9 | 8 | function _controlVideo(elId, toPlay) { | ... | ... |