-
Bug
-
Resolution: Fixed
-
Major
-
2.6
-
MOODLE_26_STABLE
-
MOODLE_26_STABLE
-
MDL-43018-master -
if a javascript file ends with a semicolon, the semicolon is dropped at the end of a file. When combining some files, it breaks the code.
javascript file 1:
(function(foo){}(bar));
javascript file 2:
(function(bar){}(foo));
combined invalid javascipt:
(function(foo){}(bar))(function(bar){}(foo))
should be:
(function(foo){}(bar));(function(bar){}(foo));
lib/classes/minify.php line 87
$compressed[] = self::js($content);
to
$compressed[] = self::js($content) . ";";