Fixed double escaping gl account name on add/update.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 19 Oct 2009 06:33:58 +0000 (06:33 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 19 Oct 2009 06:33:58 +0000 (06:33 +0000)
CHANGELOG.txt
gl/includes/db/gl_db_accounts.inc

index 647dad6b086ae69df878b71cec6902aa5c38cbe4..a78c2d14d651828ad3a36a7d11b776e5ca72f0f0 100644 (file)
@@ -19,9 +19,13 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+18-Oct-2009 Joe Hunt
+# Fixed double escaping gl account name on add/update.
+$ /gl/includes/db/gl_db_accounts.inc
+
 ------------------------------- Release 2.1.7 ----------------------------------
 ! Seccurity release 2.1.7. We strongly encourage to update to this release.
-16-ock-2009 Joe Hunt
+16-Oct-2009 Joe Hunt
 $ config.php
 
 15-Oct-2009 Joe Hunt
index 7b1cb63bec9b81741bd65933ee2018deb98e04d7..2eed9ad343ed080340169f272846ba9c31bb36d4 100644 (file)
@@ -11,7 +11,6 @@
 ***********************************************************************/
 function add_gl_account($account_code, $account_name, $account_type, $account_code2)
 {
-       $account_name = db_escape($account_name);
        $sql = "INSERT INTO ".TB_PREF."chart_master (account_code, account_code2, account_name, account_type)
                VALUES (".db_escape($account_code).", ".db_escape($account_code2).", "
                        .db_escape($account_name).", ".db_escape($account_type).")";
@@ -21,7 +20,6 @@ function add_gl_account($account_code, $account_name, $account_type, $account_co
 
 function update_gl_account($account_code, $account_name, $account_type, $account_code2)
 {
-       $account_name = db_escape($account_name);
     $sql = "UPDATE ".TB_PREF."chart_master SET account_name=".db_escape($account_name)
     .",account_type=".db_escape($account_type).", account_code2=".db_escape($account_code2)
                ." WHERE account_code = ".db_escape($account_code);