Aleksander Machniak
2014-04-08 bc088fdc907d1d88982429608e7d75507feee784
Hide PHP Warning: substr_compare() The length cannot exceed initial string length
1 files modified
2 ■■■ changed files
program/lib/Roundcube/html.php 2 ●●● patch | view | raw | blame | history
program/lib/Roundcube/html.php
@@ -285,7 +285,7 @@
            // ignore not allowed attributes
            if (!empty($allowed)) {
                $is_data_attr = substr_compare($key, 'data-', 0, 5) === 0;
                $is_data_attr = @substr_compare($key, 'data-', 0, 5) === 0;
                if (!isset($allowed_f[$key]) && (!$is_data_attr || !isset($allowed_f['data-*']))) {
                    continue;
                }