Merge pull request #12940 from drarko/master

Fix extra quotes in custom tags in header
This commit is contained in:
Morris Jobke 2014-12-18 18:44:44 +01:00
commit 85301c8b85

View file

@ -122,7 +122,7 @@ class OC_Template extends \OC\Template\Base {
foreach(OC_Util::$headers as $header) {
$headers .= '<'.OC_Util::sanitizeHTML($header['tag']);
foreach($header['attributes'] as $name=>$value) {
$headers .= ' "'.OC_Util::sanitizeHTML($name).'"="'.OC_Util::sanitizeHTML($value).'"';
$headers .= ' '.OC_Util::sanitizeHTML($name).'="'.OC_Util::sanitizeHTML($value).'"';
}
if ($header['text'] !== null) {
$headers .= '>'.OC_Util::sanitizeHTML($header['text']).'</'.OC_Util::sanitizeHTML($header['tag']).'>';