diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-04-08 20:10:54 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-04-08 20:10:54 +0200 |
commit | bc088fdc907d1d88982429608e7d75507feee784 (patch) | |
tree | efe621791138625fc2e6aabfd2ce5cdf6f6e7d2a /program/lib/Roundcube/html.php | |
parent | b08306ec1fe1a8e444a87cdb1a0304042ba0f7d4 (diff) |
Hide PHP Warning: substr_compare() The length cannot exceed initial string length
Diffstat (limited to 'program/lib/Roundcube/html.php')
-rw-r--r-- | program/lib/Roundcube/html.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/html.php b/program/lib/Roundcube/html.php index 64324dd8e..f47ef299a 100644 --- a/program/lib/Roundcube/html.php +++ b/program/lib/Roundcube/html.php @@ -285,7 +285,7 @@ class html // 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; } |