In the JFactory class the format variable retrieved from the request uses the 'word' filter which strips out all numeric characters from the variable value and leaves only alpha characters. In order to add document types for video files such as m4v, mp4, etc... this change is needed to JDocument types which include numeric characters. Consider this example:
$link = JRoute::_('index.php?option=com_video&format=m4v&id=y2VLUEh6crVq4hfV');
The router for the custom component returns a link in the form:
http://mysite.com/videos/y2VLUEh6crVq4hfV.m4v
However, following that link you will receive a view not found error message because the "type" variable will be returned as "mv" instead of "m4v" as the filter variable for JInput will strip out the numeric characters.
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-11-03 16:54:05 |
Closed_By | ⇒ | zero-24 |
A pull request has been submitted #8260