[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [1787] branches/1.2/LedgerSMB/Form.pm



Revision: 1787
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1787&view=rev
Author:   tetragon
Date:     2007-10-18 13:16:13 -0700 (Thu, 18 Oct 2007)

Log Message:
-----------
Add the ampersand to the HTML escape list for parse_template and fix 1815329.

Modified Paths:
--------------
    branches/1.2/LedgerSMB/Form.pm

Modified: branches/1.2/LedgerSMB/Form.pm
===================================================================
--- branches/1.2/LedgerSMB/Form.pm	2007-10-18 17:30:02 UTC (rev 1786)
+++ branches/1.2/LedgerSMB/Form.pm	2007-10-18 20:16:13 UTC (rev 1787)
@@ -1311,11 +1311,11 @@
 
     my %replace = (
         'order' => {
-            html => [ '<',  '>', '\n', '\r' ],
+            html => [ '<',  '>', '\n', '\r', '&' ],
             txt  => [ '\n', '\r' ],
             tex  => [
                 quotemeta('\\'), '&', '\n', '\r',
-                '\$',            '%', '_',  '#',
+                quotemeta('$'),  '%', '_',  '#',
                 quotemeta('^'),  '{', '}',  '<',
                 '>',             'Â'
             ]
@@ -1323,13 +1323,14 @@
         html => {
             '<'  => '&lt;',
             '>'  => '&gt;',
+            '&'  => '&amp;',
             '\n' => '<br />',
             '\r' => '<br />'
         },
         txt => { '\n' => "\n", '\r' => "\r" },
         tex => {
             '&'             => '\&',
-            '$'             => '\$',
+            quotemeta('$')  => '\$',
             '%'             => '\%',
             '_'             => '\_',
             '#'             => '\#',


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.