summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--program/include/main.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 43a354919..21856bc80 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -349,6 +349,7 @@ function rep_specialchars_output($str, $enctype='', $mode='', $newlines=TRUE)
$xml_rep_table['"'] = '"';
$js_rep_table['"'] = '\\"';
$js_rep_table["'"] = "\\'";
+ $js_rep_table["\\"] = "\\\\";
}
// encode for XML