summaryrefslogtreecommitdiff
path: root/databases/pear-MDB2_Driver_mysql/patches/patch-ab
blob: d4d29b37dc08253d0b6031359eff7843cef7ab6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ab,v 1.1 2008/07/13 17:55:38 tonnerre Exp $

--- MDB2/Driver/mysql.php	2007/05/02 22:00:08	1.182
+++ MDB2/Driver/mysql.php	2007/05/03 22:20:20	1.183
@@ -1398,7 +1398,7 @@
                 }
                 $value = $this->values[$parameter];
                 $type = array_key_exists($parameter, $this->types) ? $this->types[$parameter] : null;
-                if (is_resource($value) || $type == 'clob' || $type == 'blob') {
+                if (is_resource($value) || $type == 'clob' || $type == 'blob' && $this->options['lob_allow_url_include']) {
                     if (!is_resource($value) && preg_match('/^(\w+:\/\/)(.*)$/', $value, $match)) {
                         if ($match[1] == 'file://') {
                             $value = $match[2];