From 26afa8741483efa55615f7d142d93d8c6222c018 Mon Sep 17 00:00:00 2001
From: "Mikhail I. Izmestev" <izmmishao5@gmail.com>
Date: Wed, 15 Apr 2009 09:26:41 +0200
Subject: [PATCH] always use full closing tag for scripts in meta headers

Ignore-this: ee650a5aea0a3e4451175fe6b380c3d6

darcs-hash:20090415072641-556be-b66af34e909df53c7b6f5365f64fc9e725e53368.gz
---
 inc/template.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/template.php b/inc/template.php
index d4b28cad1..45b6b049e 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -372,7 +372,7 @@ function _tpl_metaheaders_action($data){
   foreach($data as $tag => $inst){
     foreach($inst as $attr){
       echo '<',$tag,' ',buildAttributes($attr);
-      if(isset($attr['_data'])){
+      if(isset($attr['_data']) || $tag == 'script'){
           if($tag == 'script' && $attr['_data'])
             $attr['_data'] = "<!--//--><![CDATA[//><!--\n".
                              $attr['_data'].
-- 
GitLab