[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-cvs
Subject:    [SM-CVS] SF.net SVN: squirrelmail:[14955] branches/SM-1_4-STABLE/squirrelmail/ functions/db_prefs.ph
From:       pdontthink--- via squirrelmail-cvs <squirrelmail-cvs () lists ! sourceforge ! net>
Date:       2022-05-22 18:57:29
Message-ID: 1653245849.344403.27676 () sfp-scm-4 ! v30 ! lw ! sourceforge ! com
[Download RAW message or body]

Revision: 14955
          http://sourceforge.net/p/squirrelmail/code/14955
Author:   pdontthink
Date:     2022-05-22 18:57:29 +0000 (Sun, 22 May 2022)
Log Message:
-----------
Correct global config name

Modified Paths:
--------------
    branches/SM-1_4-STABLE/squirrelmail/functions/db_prefs.php

Modified: branches/SM-1_4-STABLE/squirrelmail/functions/db_prefs.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/functions/db_prefs.php	2022-05-22 18:55:29 \
                UTC (rev 14954)
+++ branches/SM-1_4-STABLE/squirrelmail/functions/db_prefs.php	2022-05-22 18:57:29 \
UTC (rev 14955) @@ -35,17 +35,17 @@
  *                                 internal database information from being
  *                                 exposed. This should be enabled only for
  *                                 debugging purposes.
- *    string $identifier_quote_char By default, SquirrelMail will quote
- *                                  table and field names in database
- *                                  queries with what it thinks is the
- *                                  appropriate quote character for the
- *                                  database type being used (backtick
- *                                  for MySQL (and thus MariaDB), double
- *                                  quotes for all others), but you can
- *                                  override the character used by
- *                                  putting it here, or tell SquirrelMail
- *                                  NOT to quote identifiers by setting
- *                                  this to "none"
+ *    string $db_identifier_quote_char By default, SquirrelMail will quote
+ *                                     table and field names in database
+ *                                     queries with what it thinks is the
+ *                                     appropriate quote character for the
+ *                                     database type being used (backtick
+ *                                     for MySQL (and thus MariaDB), double
+ *                                     quotes for all others), but you can
+ *                                     override the character used by
+ *                                     putting it here, or tell SquirrelMail
+ *                                     NOT to quote identifiers by setting
+ *                                     this to "none"
  *
  * @copyright 1999-2022 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
@@ -170,7 +170,7 @@
     }
 
     function open() {
-        global $prefs_dsn, $prefs_table, $use_pdo, $identifier_quote_char;
+        global $prefs_dsn, $prefs_table, $use_pdo, $db_identifier_quote_char;
         global $prefs_user_field, $prefs_key_field, $prefs_val_field;
 
         if(isset($this->dbh)) {
@@ -184,15 +184,15 @@
         }
 
         // figure out identifier quoting
-        if (empty($identifier_quote_char)) {
+        if (empty($db_identifier_quote_char)) {
             if ($this->db_type == SMDB_MYSQL)
                 $this->identifier_quote_char = '`';
             else
                 $this->identifier_quote_char = '"';
-        } else if ($identifier_quote_char === 'none')
+        } else if ($db_identifier_quote_char === 'none')
             $this->identifier_quote_char = '';
         else
-            $this->identifier_quote_char = $identifier_quote_char;
+            $this->identifier_quote_char = $db_identifier_quote_char;
 
         if (!empty($prefs_table)) {
             $this->table = $prefs_table;

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



-----
squirrelmail-cvs mailing list
List address: squirrelmail-cvs@lists.sourceforge.net
List info (subscribe/unsubscribe/change options): \
                https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
Repository: http://squirrelmail.org/svn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic