- Timestamp:
- 02/07/2024 06:15:34 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/trac.wordpress.org/templates/update-headers.php
r13183 r13184 63 63 $html = preg_replace( '#<style([^>]*)><!\[CDATA\[(.+?)\]\]></style>#ism', "<style$1>$2</style>", $html ); 64 64 65 // Remove CDATA tags in <script>66 $html = preg_replace( '#<script([^>]*)><!\[CDATA\[(.+?)\]\]></script>#ism', "<script$1> $2</script>", $html );65 // Escape CDATA tags in <script>. REQUIRED. Trac will fatal without it. 66 $html = preg_replace( '#<script([^>]*)><!\[CDATA\[(.+?)\]\]></script>#ism', "<script$1>//<![CDATA[\n$2\n//]]></script>", $html ); 67 67 68 68 // Remove trailing whitespace.
Note: See TracChangeset
for help on using the changeset viewer.