318
318
This is done to ensure that only approved libraries from the
319
319
plugin directory are used (to make this even remotely secure).
321
if (my_strchr(files_charset_info, dl->str, dl->str + dl->length, FN_LIBCHAR) ||
322
322
check_string_char_length((LEX_STRING *) dl, "", NAME_CHAR_LEN,
323
323
system_charset_info, 1) ||
324
324
plugin_dir_len + dl->length + 1 >= FN_REFLEN)