]> granicus.if.org Git - php/commitdiff
Fixed bug #52010 (open_basedir restrictions mismatch on vacuum command).
authorIlia Alshanetsky <iliaa@php.net>
Wed, 9 Jun 2010 16:04:54 +0000 (16:04 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 9 Jun 2010 16:04:54 +0000 (16:04 +0000)
NEWS
ext/sqlite3/sqlite3.c

diff --git a/NEWS b/NEWS
index 6d94560dcb205de06ce9b7b8ef76a7ff3bb2709d..dfbb46cd9073b281a6b45bb3feb147713e6e55b3 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -67,6 +67,8 @@ PHP                                                                        NEWS
   requests (Fixes CVE-2010-0397, bug #51288). (Raphael Geissert)
 - Fixed 64-bit integer overflow in mhash_keygen_s2k(). (ClĂ©ment LECIGNE, Stas)
 
+- Fixed bug #52010 (open_basedir restrictions mismatch on vacuum command).
+  (Ilia)
 - Fixed bug #51991 (spl_autoload and *nix support with namespace). (Felipe)
 - Fixed bug #51911 (ReflectionParameter::getDefaultValue() memory leaks with
   constant array). (Felipe)
index 00364b0dd4942af7369691a6fec3798783137eb7..10bd32024b732428e7d37a8e36026c79a64b9039 100644 (file)
@@ -1788,7 +1788,7 @@ static int php_sqlite3_authorizer(void *autharg, int access_type, const char *ar
        switch (access_type) {
                case SQLITE_ATTACH:
                {
-                       if (strncmp(arg3, ":memory:", sizeof(":memory:")-1)) {
+                       if (strncmp(arg3, ":memory:", sizeof(":memory:")-1) && *arg3) {
                                TSRMLS_FETCH();
 
 #if PHP_API_VERSION < 20100412