]> granicus.if.org Git - php/commitdiff
suggestion by Wez :)
authorGeorg Richter <georg@php.net>
Sat, 31 May 2003 06:54:53 +0000 (06:54 +0000)
committerGeorg Richter <georg@php.net>
Sat, 31 May 2003 06:54:53 +0000 (06:54 +0000)
ext/mysql/php_mysql.c

index 0641c98ab8b922dac5b9c1d353e1ad4bb8cbe0df..25f325467fc7b3ac57ab21a0a463c0ed1c38c4de 100644 (file)
@@ -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;
                }