summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/Form.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index 9c109b76..c26fcc1f 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -1311,11 +1311,11 @@ sub format_string {
my %replace = (
'order' => {
- html => [ '<', '>', '\n', '\r' ],
+ html => [ '<', '>', '\n', '\r', '&' ],
txt => [ '\n', '\r' ],
tex => [
quotemeta('\\'), '&', '\n', '\r',
- '\$', '%', '_', '#',
+ quotemeta('$'), '%', '_', '#',
quotemeta('^'), '{', '}', '<',
'>', '£'
]
@@ -1323,13 +1323,14 @@ sub format_string {
html => {
'<' => '&lt;',
'>' => '&gt;',
+ '&' => '&amp;',
'\n' => '<br />',
'\r' => '<br />'
},
txt => { '\n' => "\n", '\r' => "\r" },
tex => {
'&' => '\&',
- '$' => '\$',
+ quotemeta('$') => '\$',
'%' => '\%',
'_' => '\_',
'#' => '\#',