summaryrefslogtreecommitdiff
path: root/plugins/kolab_activesync
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2012-09-20 13:56:54 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2012-09-20 13:56:54 (GMT)
commitf693e2d1838b838540d2f6e8c387375bc336d422 (patch)
tree4436c1fbee1c0a74879adc8e8dc9aedccf0d105e /plugins/kolab_activesync
parent7651e5de39a4fa0ed023462927637d1767231280 (diff)
downloadroundcubemail-plugins-kolab-f693e2d1838b838540d2f6e8c387375bc336d422.tar.gz
Fixes for html_ent branch in ROundcube core: Proper HTML entities handling
Diffstat (limited to 'plugins/kolab_activesync')
-rw-r--r--plugins/kolab_activesync/kolab_activesync_ui.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/kolab_activesync/kolab_activesync_ui.php b/plugins/kolab_activesync/kolab_activesync_ui.php
index 9e4fe5c..e28d523 100644
--- a/plugins/kolab_activesync/kolab_activesync_ui.php
+++ b/plugins/kolab_activesync/kolab_activesync_ui.php
@@ -162,7 +162,7 @@ class kolab_activesync_ui
$length = strlen($names[$i].' &raquo; ');
$prefix = substr($foldername, 0, $length);
$count = count(explode(' &raquo; ', $prefix));
- $foldername = str_repeat('&nbsp;&nbsp;', $count-1) . '&raquo; ' . substr($foldername, $length);
+ $foldername = str_repeat('&nbsp;&nbsp;', $count-1) . '&raquo; ' . html::quote(substr($foldername, $length));
break;
}
}
@@ -171,14 +171,14 @@ class kolab_activesync_ui
$classes = array('mailbox');
if ($folder_class = rcmail_folder_classname($folder)) {
- $foldername = rcube_label($folder_class);
+ $foldername = html::quote(rcube_label($folder_class));
$classes[] = $folder_class;
}
$folder_id = 'rcmf' . html_identifier($folder);
$padding = str_repeat('&nbsp;&nbsp;&nbsp;&nbsp;', $level);
- $table->add_row(array('class' => (($level+1) * $idx++) % 2 == 0 ? 'even' : 'odd'));
+ $table->add_row();
$table->add('subscription', $checkbox_sync->show(
!empty($subscribed[$folder]) ? $folder : null,
array('value' => $folder, 'id' => $folder_id)));
@@ -189,7 +189,7 @@ class kolab_activesync_ui
array('value' => $folder, 'id' => $folder_id.'_alarm')));
}
- $table->add(join(' ', $classes), html::label($folder_id, $padding . Q($foldername)));
+ $table->add(join(' ', $classes), html::label($folder_id, $padding . $foldername));
}
return $table->show();