Aleksander Machniak
2014-05-30 b408e0bc532e6023248c6671c5cef52d1c06f3f3
program/lib/Roundcube/html.php
@@ -283,10 +283,9 @@
                continue;
            }
            // ignore not allowed attributes
            // ignore not allowed attributes, except data-*
            if (!empty($allowed)) {
                $is_data_attr = substr_compare($key, 'data-', 0, 5) === 0;
                if (!isset($allowed_f[$key]) && (!$is_data_attr || !isset($allowed_f['data-*']))) {
                if (!isset($allowed_f[$key]) && @substr_compare($key, 'data-', 0, 5) !== 0) {
                    continue;
                }
            }