mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Made LOAD DATA LOCAL INFILE more secure
This commit is contained in:
@@ -132,7 +132,7 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
|
||||
if (read_file_from_client && handle_duplicates == DUP_ERROR)
|
||||
handle_duplicates=DUP_IGNORE;
|
||||
|
||||
if (read_file_from_client && (thd->client_capabilities & CLIENT_LOCAL_FILES))
|
||||
if (read_file_from_client)
|
||||
{
|
||||
char tmp [FN_REFLEN+1],*end;
|
||||
DBUG_PRINT("info",("reading local file"));
|
||||
|
||||
Reference in New Issue
Block a user