Issue Bug Closed

#36719Javascript in header without script tags

Markus Kappe 04/30/12, 13:26 updated 10/02/18, 12:17

Description

I am using TYPO3 4.6.8 and TMENU_LAYERS. On some pages (in my case the one with the indexed_search plugin) the JavaScript code (starting with GLV_) is displayed on the page. A quick look in the source showed, that the <script> tags were missing around the TMENU_LAYERS JS code. But only, when the cache is active. A &amp;no_cache=1 in the url and the display looked OK.</p> <p>In TYPO3 4.5.15 everything worked fine.</p> <p>I did some research and found that: <a href="http://bugs.typo3.org/bug_view_advanced_page.php?bug_id=18513" target="_blank" rel="noreferrer">http://bugs.typo3.org/bug_view_advanced_page.php?bug_id=18513</a></p> <p>And I think I found the error in the TYPO3 core:<br />In tslib_fe::INTincScript() disappeared the line</p> <p>

$this->JSCode = $this->additionalHeaderData['JSCode'];
</p> <p>(compared 4.5.15 with 4.6.8). I cannot see any meaning or intention behind that change, so I suppose this is the bug.</p></script>

Reviews 7