diff options
author | thomascube <thomas@roundcube.net> | 2005-10-22 14:17:25 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2005-10-22 14:17:25 +0000 |
commit | f619dedc5aa2020eeffa01e05feacedb043ccb66 (patch) | |
tree | 21d544808edbd23837951cbe19d64ed84242dbe5 /program/include/rcube_shared.inc | |
parent | 7dd801e71011f62ff7b2dd59636a6908fd037993 (diff) |
Patches for 20051021 release
Diffstat (limited to 'program/include/rcube_shared.inc')
-rw-r--r-- | program/include/rcube_shared.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc index 6874094a1..c0df2e585 100644 --- a/program/include/rcube_shared.inc +++ b/program/include/rcube_shared.inc @@ -1245,7 +1245,7 @@ function rep_specialchars_output($str, $enctype='', $mode='', $newlines=TRUE) // encode for javascript use if ($enctype=='js') - return preg_replace(array("/\r\n/", '/"/', "/'/"), array('\n', '\"', "\'"), strtr($str, $js_rep_table)); + return preg_replace(array("/\r\n/", '/"/', "/([^\\\])'/"), array('\n', '\"', "$1\'"), strtr($str, $js_rep_table)); // encode for RTF if ($enctype=='rtf') |