From fb7f9eb420349ebd03c85e3fd9eb9fa81008737d Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Sat, 31 May 2003 06:54:53 +0000 Subject: [PATCH] suggestion by Wez :) --- ext/mysql/php_mysql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 0641c98ab8..25f325467f 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -562,7 +562,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) break; } /* disable local infile option for open_basedir */ - if (PG(open_basedir)) { + if (PG(open_basedir) && strlen(PG(open_basedir))) { client_flags ^= CLIENT_LOCAL_FILES; } -- 2.50.1