mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: added <param> tag to ContentNegotiator filtering
This commit is contained in:
parent
7627d95555
commit
de10471c7e
@ -184,6 +184,7 @@ class ContentNegotiator extends Object {
|
|||||||
$content = str_replace('<hr>','<hr />', $content);
|
$content = str_replace('<hr>','<hr />', $content);
|
||||||
$content = preg_replace('#(<img[^>]*[^/>])>#i', '\\1/>', $content);
|
$content = preg_replace('#(<img[^>]*[^/>])>#i', '\\1/>', $content);
|
||||||
$content = preg_replace('#(<input[^>]*[^/>])>#i', '\\1/>', $content);
|
$content = preg_replace('#(<input[^>]*[^/>])>#i', '\\1/>', $content);
|
||||||
|
$content = preg_replace('#(<param[^>]*[^/>])>#i', '\\1/>', $content);
|
||||||
$content = preg_replace("#(\<option[^>]*[\s]+selected)(?!\s*\=)#si", "$1=\"selected\"$2", $content);
|
$content = preg_replace("#(\<option[^>]*[\s]+selected)(?!\s*\=)#si", "$1=\"selected\"$2", $content);
|
||||||
$content = preg_replace("#(\<input[^>]*[\s]+checked)(?!\s*\=)#si", "$1=\"checked\"$2", $content);
|
$content = preg_replace("#(\<input[^>]*[\s]+checked)(?!\s*\=)#si", "$1=\"checked\"$2", $content);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user