summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/html.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-06-05 12:03:46 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-06-05 12:03:46 +0200
commitebfdc0925f7169aac45c2437d7a1196687a200c8 (patch)
treeeadd3cc69e60128e1ce1fc4c063ad3d1227dd57b /program/lib/Roundcube/html.php
parent7fafb4d0d28bef3902da4cc172cd53c2376aeb03 (diff)
Fix check for data-* attributes after merge with dev-accessibility
Diffstat (limited to 'program/lib/Roundcube/html.php')
-rw-r--r--program/lib/Roundcube/html.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/html.php b/program/lib/Roundcube/html.php
index 0209d1bf2..3aae7cfe7 100644
--- a/program/lib/Roundcube/html.php
+++ b/program/lib/Roundcube/html.php
@@ -283,11 +283,11 @@ class html
continue;
}
- // ignore not allowed attributes, except data-*
+ // ignore not allowed attributes, except aria-* and data-*
if (!empty($allowed)) {
$is_data_attr = @substr_compare($key, 'data-', 0, 5) === 0;
$is_aria_attr = @substr_compare($key, 'aria-', 0, 5) === 0;
- if (!$is_aria_attr && !isset($allowed_f[$key]) && (!$is_data_attr || !isset($allowed_f['data-*']))) {
+ if (!$is_aria_attr && !$is_data_attr && !isset($allowed_f[$key])) {
continue;
}
}