Skip to content

Commit b643e12

Browse files
author
Ilia Alshanetsky
committed
Fixed bug #52010 (open_basedir restrictions mismatch on vacuum command).
1 parent 400769f commit b643e12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/sqlite3/sqlite3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1788,7 +1788,7 @@ static int php_sqlite3_authorizer(void *autharg, int access_type, const char *ar
17881788
switch (access_type) {
17891789
case SQLITE_ATTACH:
17901790
{
1791-
if (strncmp(arg3, ":memory:", sizeof(":memory:")-1)) {
1791+
if (strncmp(arg3, ":memory:", sizeof(":memory:")-1) && *arg3) {
17921792
TSRMLS_FETCH();
17931793

17941794
#if PHP_API_VERSION < 20100412

0 commit comments

Comments
 (0)