Fixed unescaped ampersands in "&enano_version" cache breaking
authorDan
Mon, 08 Feb 2010 17:04:08 -0500
changeset 1220 fbfd6c852c89
parent 1219 2b13cd6b4f95
child 1221 d8c6b8d49604
Fixed unescaped ampersands in "&enano_version" cache breaking
includes/template.php
--- a/includes/template.php	Sun Feb 07 17:07:42 2010 -0500
+++ b/includes/template.php	Mon Feb 08 17:04:08 2010 -0500
@@ -581,7 +581,7 @@
       // point to jsres compressor
       $js_head .= <<<JSEOF
       <!-- Only load a basic set of functions for now. Let the rest of the API load when the page is finished. -->
-      <script type="text/javascript" src="$cdnpath/includes/clientside/jsres.php?early&$enano_version"></script>
+      <script type="text/javascript" src="$cdnpath/includes/clientside/jsres.php?early&amp;$enano_version"></script>
 JSEOF;
       $js_foot = '';
       
@@ -596,10 +596,10 @@
         {
           // special case for l10n: also load strings
           global $lang;
-          $js_foot .= "\n    <script type=\"text/javascript\" src=\"" . makeUrlNS("Special", "LangExportJSON/$lang->lang_id", $enano_version) . "\"></script>";
+          $js_foot .= "\n    <script type=\"text/javascript\" src=\"" . makeUrlNS("Special", "LangExportJSON/$lang->lang_id", $enano_version, true) . "\"></script>";
         }
         $scripts = implode(',', $this->js_preload);
-        $js_foot .= "\n    <script type=\"text/javascript\" src=\"" . cdnPath . "/includes/clientside/jsres.php?f=$scripts&$enano_version\"></script>";
+        $js_foot .= "\n    <script type=\"text/javascript\" src=\"" . cdnPath . "/includes/clientside/jsres.php?f=$scripts&amp;$enano_version\"></script>";
         
       }