From effc35fdbeb7dd721e34ae94c7470576fd7a6a4f Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Wed, 22 Oct 2008 03:40:04 -0400
Subject: [PATCH] #1485513: another MDB2 package fix in _skipDelimitedStrings()
---
program/lib/MDB2.php | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/program/lib/MDB2.php b/program/lib/MDB2.php
index 5c4c8d2..7b769ff 100644
--- a/program/lib/MDB2.php
+++ b/program/lib/MDB2.php
@@ -3024,7 +3024,11 @@
return $err;
}
}
- } while ($ignore['escape'] && $query[($end_quote - 1)] == $ignore['escape'] && $end_quote-1 != $start_quote);
+ } while ($ignore['escape']
+ && $end_quote-1 != $start_quote
+ && $query[($end_quote - 1)] == $ignore['escape']
+ && ($ignore['escape_pattern'] !== $ignore['escape']
+ || $query[($end_quote - 2)] != $ignore['escape']));
$position = $end_quote + 1;
return $position;
}
--
Gitblit v1.9.1