Skip to content
Browse files

BUGFIX: added <param> tag to ContentNegotiator filtering

  • Loading branch information...
1 parent 7627d95 commit de10471c7ea86df334d71108567742542375b375 g4b0 committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 control/ContentNegotiator.php
View
1 control/ContentNegotiator.php
@@ -184,6 +184,7 @@ public function xhtml(SS_HTTPResponse $response) {
$content = str_replace('<hr>','<hr />', $content);
$content = preg_replace('#(<img[^>]*[^/>])>#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("#(\<input[^>]*[\s]+checked)(?!\s*\=)#si", "$1=\"checked\"$2", $content);

0 comments on commit de10471

Please sign in to comment.
Something went wrong with that request. Please try again.