disable set names etc.
authorAlan Knowles <alan@roojs.com>
Wed, 7 Oct 2020 06:28:27 +0000 (14:28 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 7 Oct 2020 06:28:27 +0000 (14:28 +0800)
DB/mysqli.php
Fpdf/tFPDF.php
XML/SvgToPdf/Path.php

index aea9465..7e2c2a7 100644 (file)
@@ -351,7 +351,9 @@ class DB_mysqli extends DB_common
         if ($dsn['database']) {
             $this->_db = $dsn['database'];
         }
-
+        // appears that these are not needed 
+        //@mysqli_set_charset($this->connection, "utf8");
+        //@mysqli_query($this->connection, 'SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci');
         return DB_OK;
     }
 
index 0bdb287..92780b7 100644 (file)
@@ -1243,9 +1243,7 @@ function _dochecks()
        if(ini_get('mbstring.func_overload') & 2)
                $this->Error('mbstring overloading must be disabled');
        //Disable runtime magic quotes
-       if(get_magic_quotes_runtime()) {
-               set_magic_quotes_runtime(0);
-       }
+       
 }
 
 function _getpageformat($format)
index f0ce330..91bfd1c 100644 (file)
@@ -140,6 +140,7 @@ class XML_SvgToPDF_Path  extends XML_SvgToPDF_Base {
         if (!$color || ($color == 'none')) {
             return false;
         }
+        var_dump($color);
         return array(
             hexdec(substr($color,1,2)),
             hexdec(substr($color,3,2)),