Commit 863e53e3 authored by merlinofchaos's avatar merlinofchaos

Fix CSS sanitizer to more properly test for necessary semi-colons.

parent d5936ac2
......@@ -309,7 +309,8 @@ function ctools_css_disassemble($css) {
// Remove comments.
$css = preg_replace("/\/\*(.*)?\*\//Usi", "", $css);
// Split out each statement
$statements = explode("}", $css);
$statements = preg_split('/[;}]/', $css);
// If we have any statements, parse them.
if (!empty($statements)) {
// Iterate through all of the statements.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment