centurion-project / Centurion

Centurion is an open-source CMS delivered as a flexible PHP5 Content Management Framework
http://www.centurion-project.org
197 stars 51 forks source link

ZFDebug breaks HTML validation #51

Closed aurmil closed 12 years ago

aurmil commented 12 years ago
$response->setBody(preg_replace('/(<\/head.*>)/i', '$1' . $this->_headerOutput(), $response->getBody()));

should be

$response->setBody(preg_replace('/(<\/head.*>)/i', $this->_headerOutput() . '$1', $response->getBody()));

currently, scripts and styles are added after head closing tag!

'<p>©2008-2009 <a href="http://jokke.dk">Joakim Nygård</a> & <a href="http://www.bangal.de">Andreas Pankratz</a></p>' .

should be

'<p>©2008-2009 <a href="http://jokke.dk">Joakim Nygård</a> &amp; <a href="http://www.bangal.de">Andreas Pankratz</a></p>' .

& encoding

no check done on doctype, force "< br >" so no closing slash with XHTML doctype