summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-04-08 20:10:54 +0200
committerAleksander Machniak <alec@alec.pl>2014-04-08 20:18:18 +0200
commit7a6dd9ad8426b5c5d276e031d72aad58efe1341e (patch)
treed636a2c8d7e5f99c93071af70b5d962d6bcd99a0 /program/lib
parent7883ecb8ec16108d074f63330b489516c32a3b2f (diff)
Hide PHP Warning: substr_compare() The length cannot exceed initial string length
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/Roundcube/html.php2
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;
}