Thomas Bruederli
2013-10-26 fdb30f32790857797ae91520995b02316d2d3673
program/lib/Roundcube/rcube_utils.php
@@ -454,6 +454,9 @@
        // cut out all contents between { and }
        while (($pos = strpos($source, '{', $last_pos)) && ($pos2 = strpos($source, '}', $pos))) {
            $nested = strpos($source, '{', $pos+1);
            if ($nested && $nested < $pos2)  // when dealing with nested blocks (e.g. @media), take the inner one
                $pos = $nested;
            $length = $pos2 - $pos - 1;
            $styles = substr($source, $pos+1, $length);