old mode 100755
new mode 100644
| | |
| | | */ |
| | | private function parse_xml($input) |
| | | { |
| | | return preg_replace_callback('/<roundcube:([-_a-z]+)\s+([^>]+)>/Ui', array($this, 'xml_command'), $input); |
| | | return preg_replace_callback('/<roundcube:([-_a-z]+)\s+((?:[^>]|\\\\>)+)(?<!\\\\)>/Ui', array($this, 'xml_command'), $input); |
| | | } |
| | | |
| | | |
| | |
| | | break; |
| | | case 'config': |
| | | $value = $this->config[$name]; |
| | | if (is_array($value) && $value[$_SESSION['imap_host']]) { |
| | | $value = $value[$_SESSION['imap_host']]; |
| | | if (is_array($value) && $value[$_SESSION['storage_host']]) { |
| | | $value = $value[$_SESSION['storage_host']]; |
| | | } |
| | | break; |
| | | case 'request': |
| | |
| | | if ($attrib['label']) { |
| | | $attrib['value'] = $attrib['label']; |
| | | } |
| | | if ($attrib['command']) { |
| | | $attrib['disabled'] = 'disabled'; |
| | | } |
| | | |
| | | $attrib_str = html::attrib_string( |
| | | $attrib, |
| | | array( |
| | | 'type', 'value', 'onclick', 'id', 'class', 'style', 'tabindex' |
| | | ) |
| | | ); |
| | | $out = sprintf('<input%s disabled="disabled" />', $attrib_str); |
| | | $out = html::tag('input', $attrib, '', array('type', 'value', 'onclick', 'id', 'class', 'style', 'tabindex', 'disabled')); |
| | | } |
| | | |
| | | // generate html code for button |