summaryrefslogtreecommitdiff
path: root/lib/exe/js.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-03-08 23:43:31 +0100
committerAndreas Gohr <andi@splitbrain.org>2007-03-08 23:43:31 +0100
commit4d2d451e31055e306db13324f3db6674f9f9a4e0 (patch)
treebd9395317b0120fc6bb286e04dea1331b1111562 /lib/exe/js.php
parent73bea65db81c67139292d26518a078a4fae38f44 (diff)
downloadrpg-4d2d451e31055e306db13324f3db6674f9f9a4e0.tar.gz
rpg-4d2d451e31055e306db13324f3db6674f9f9a4e0.tar.bz2
always have a trailing newline in JavaScript output
This may fix https://bugzilla.mozilla.org/show_bug.cgi?id16033 darcs-hash:20070308224331-7ad00-e5ef018706062baf6bec2bd11dfb318e0fe4b1f6.gz
Diffstat (limited to 'lib/exe/js.php')
-rw-r--r--lib/exe/js.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/exe/js.php b/lib/exe/js.php
index 149b7ab5b..69b0ba27d 100644
--- a/lib/exe/js.php
+++ b/lib/exe/js.php
@@ -153,6 +153,8 @@ function js_out(){
$js = js_compress($js);
}
+ $js .= "\n"; // https://bugzilla.mozilla.org/show_bug.cgi?id=316033
+
// save cache file
io_saveFile($cache,$js);