From 1d7e4d314dcdaa1aa5353f6d520ba448b5808f8f Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Sat, 24 Oct 2009 13:04:22 -0400
Subject: [PATCH] - allow '+' character in mimetype name (#1486239)

---
 program/lib/MDB2/Driver/sqlite.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/program/lib/MDB2/Driver/sqlite.php b/program/lib/MDB2/Driver/sqlite.php
index e48bac3..adb5551 100644
--- a/program/lib/MDB2/Driver/sqlite.php
+++ b/program/lib/MDB2/Driver/sqlite.php
@@ -412,12 +412,14 @@
                 'unable to establish a connection', __FUNCTION__);
             }
 
+/*
             if (!empty($this->dsn['charset'])) {
                 $result = $this->setCharset($this->dsn['charset'], $connection);
                 if (PEAR::isError($result)) {
                     return $result;
                 }
             }
+*/
 
             $this->connection = $connection;
             $this->connected_dsn = $this->dsn;
@@ -947,7 +949,7 @@
             if ($object_class == 'stdClass') {
                 $row = (object) $row;
             } else {
-                $row = &new $object_class($row);
+                $row = new $object_class($row);
             }
         }
         ++$this->rownum;

--
Gitblit v1.9.1