From 4a02f99c618ff27cc7feffc5da944008306ae876 Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Tue, 15 Nov 2011 23:59:59 +0000 Subject: [PATCH] Fix concatenation of JS modules. Without a semicolon separator, it's possible that concatenated modules can be interpreted as valid JS expressions. --- r2/r2/lib/js.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/lib/js.py b/r2/r2/lib/js.py index 04f4bd2a4..e56432f98 100755 --- a/r2/r2/lib/js.py +++ b/r2/r2/lib/js.py @@ -73,7 +73,7 @@ class Module(Source): self.sources.append(source) def get_source(self): - return "\n".join(s.get_source() for s in self.sources) + return ";".join(s.get_source() for s in self.sources) @property def path(self):