thomascube
2006-12-20 f91a4990461d44f12755628f732b3b25544b96cc
Little fix for new string quoting

2 files modified
9 ■■■■■ changed files
program/include/main.inc 3 ●●●● patch | view | raw | blame | history
program/steps/mail/upload.inc 6 ●●●● patch | view | raw | blame | history
program/include/main.inc
@@ -1020,7 +1020,7 @@
  // if the replace tables for XML and JS are not yet defined
  if (!$js_rep_table)
    {
    $js_rep_tabl = $xml_rep_table = array();
    $js_rep_table = $xml_rep_table = array();
    $xml_rep_table['&'] = '&';
    for ($c=160; $c<256; $c++)  // can be increased to support more charsets
@@ -1032,7 +1032,6 @@
        $js_rep_table[Chr($c)] = sprintf("\u%s%s", str_repeat('0', 4-strlen($hex)), $hex);
      }
    $js_rep_table['"'] = sprintf("\u%s%s", str_repeat('0', 4-strlen(dechex(34))), dechex(34));
    $xml_rep_table['"'] = '&quot;';
    }
program/steps/mail/upload.inc
@@ -56,9 +56,9 @@
    $content = sprintf('<a href="#delete" onclick="return %s.command(\\\'remove-attachment\\\', \\\'rcmfile%d\\\', this)" title="%s">%s</a>%s',
                       $JS_OBJECT_NAME,
                       $id,
                       JQ(Q(rcube_label('delete'))),
                       JQ($button),
                       JQ(Q($_FILES['_attachments']['name'][$i])));
                       Q(rcube_label('delete')),
                       $button,
                       Q($_FILES['_attachments']['name'][$i]));
    $response .= sprintf('parent.%s.add2attachment_list(\'rcmfile%d\',\'%s\');',
                         $JS_OBJECT_NAME,