]> 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)
ext/sqlite3/sqlite3.c

index 643e1a07bcb95066500cc1c5677b16a9638b0f3e..6cbb754f3cba04ffd6e8feef817f0c9a7f32bcbc 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