Document Dispatch not creating patient folder

Additionally, I took out check_file_dir_name from
line 122

$ffname = check_file_dir_name(trim($_POST[‘form_filename’]);

and changed it to

$ffname = trim($_POST[‘form_filename’]);

and now filename changes are sticking!