mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-09 15:28:40 +00:00
Fix YouTube rendering problem on versions of Firefox.
Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
parent
762c089431
commit
db218c7b2b
1
NEWS
1
NEWS
@ -21,6 +21,7 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
|
|||||||
- Fix broken test suite in versions of PHP without spl_autoload_register()
|
- Fix broken test suite in versions of PHP without spl_autoload_register()
|
||||||
- Fix degenerate case with YouTube filter involving double hyphens.
|
- Fix degenerate case with YouTube filter involving double hyphens.
|
||||||
Thanks Pierre Attar for reporting.
|
Thanks Pierre Attar for reporting.
|
||||||
|
- Fix YouTube rendering problem on certain versions of Firefox.
|
||||||
. Add verbose mode to command line test runner, use (--verbose)
|
. Add verbose mode to command line test runner, use (--verbose)
|
||||||
. Turn on unit tests for UnitConverter
|
. Turn on unit tests for UnitConverter
|
||||||
. Fix missing version number in configuration %Attr.DefaultImageAlt (added 3.2.0)
|
. Fix missing version number in configuration %Attr.DefaultImageAlt (added 3.2.0)
|
||||||
|
@ -23,10 +23,9 @@ class HTMLPurifier_Filter_YouTube extends HTMLPurifier_Filter
|
|||||||
|
|
||||||
protected function postFilterCallback($matches) {
|
protected function postFilterCallback($matches) {
|
||||||
$url = $this->armorUrl($matches[1]);
|
$url = $this->armorUrl($matches[1]);
|
||||||
return '<object width="425" height="350" '.
|
return '<object width="425" height="350" type="application/x-shockwave-flash" '.
|
||||||
'data="http://www.youtube.com/v/'.$url.'">'.
|
'data="http://www.youtube.com/v/'.$url.'">'.
|
||||||
'<param name="movie" value="http://www.youtube.com/v/'.$url.'"></param>'.
|
'<param name="movie" value="http://www.youtube.com/v/'.$url.'"></param>'.
|
||||||
'<param name="wmode" value="transparent"></param>'.
|
|
||||||
'<!--[if IE]>'.
|
'<!--[if IE]>'.
|
||||||
'<embed src="http://www.youtube.com/v/'.$url.'"'.
|
'<embed src="http://www.youtube.com/v/'.$url.'"'.
|
||||||
'type="application/x-shockwave-flash"'.
|
'type="application/x-shockwave-flash"'.
|
||||||
|
Loading…
Reference in New Issue
Block a user