diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-07-24 14:22:18 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-07-24 14:22:18 +0200 |
commit | 2df262d448831cc6ca3a5137b80e92afc0bb22f5 (patch) | |
tree | b44ee16b6b4499b92912afce254e4a4faa101f11 /program/include/rcube_output_html.php | |
parent | 09e5fc99f8eab6e9ab9c1f7046129ef21f914cb4 (diff) | |
parent | fa8f6e610ce50d9373832f1a5a846a9183f8d81d (diff) |
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'program/include/rcube_output_html.php')
-rw-r--r-- | program/include/rcube_output_html.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/program/include/rcube_output_html.php b/program/include/rcube_output_html.php index 7ceea1839..30201fd04 100644 --- a/program/include/rcube_output_html.php +++ b/program/include/rcube_output_html.php @@ -699,7 +699,15 @@ class rcube_output_html extends rcube_output $vars = $attrib + array('product' => $this->config->get('product_name')); unset($vars['name'], $vars['command']); $label = $this->app->gettext($attrib + array('vars' => $vars)); - return !$attrib['noshow'] ? (get_boolean((string)$attrib['html']) ? $label : html::quote($label)) : ''; + $quoting = !empty($attrib['quoting']) ? strtolower($attrib['quoting']) : (get_boolean((string)$attrib['html']) ? 'no' : ''); + switch ($quoting) { + case 'no': + case 'raw': break; + case 'javascript': + case 'js': $label = rcmail::JQ($label); break; + default: $label = html::quote($label); break; + } + return !$attrib['noshow'] ? $label : ''; } break; |