summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-12-20 14:26:37 +0000
committerthomascube <thomas@roundcube.net>2006-12-20 14:26:37 +0000
commitf91a4990461d44f12755628f732b3b25544b96cc (patch)
treec962106c7455a3f30795eae9ae458dcb51e419ae /program/include
parentb66d40776c763b0b63525b78406893ef52d42c9d (diff)
Little fix for new string quoting
Diffstat (limited to 'program/include')
-rw-r--r--program/include/main.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 1abd84aa8..c6370eae9 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1020,7 +1020,7 @@ function rep_specialchars_output($str, $enctype='', $mode='', $newlines=TRUE)
// 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['&'] = '&amp;';
for ($c=160; $c<256; $c++) // can be increased to support more charsets
@@ -1032,7 +1032,6 @@ function rep_specialchars_output($str, $enctype='', $mode='', $newlines=TRUE)
$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;';
}