From: Georg Richter Date: Sat, 31 May 2003 06:54:53 +0000 (+0000) Subject: suggestion by Wez :) X-Git-Tag: php-4.3.3RC1~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb7f9eb420349ebd03c85e3fd9eb9fa81008737d;p=php suggestion by Wez :) --- 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; }