AshishJoshi-asj / zfdebug

Automatically exported from code.google.com/p/zfdebug
Other
0 stars 0 forks source link

Adding JS code to <header> tag #87

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have noticed that in file ZFDebug/Controller/Plugin/Debug.php in 
ZFDebug_Controller_Plugin_Debug::_output function there is a regular expression 
which place ZFDebug's code in every <header> tag which is specified in HTML5 
standard. It's a problem, because it often cause that browser hangs.
In my view you should change this regular expression from:
/(<head.*>)/i
to
/(<head(?!er).*>)/i

Original issue reported on code.google.com by kacperko...@gmail.com on 3 Sep 2013 at 1:35