MDL-33791 Portfolio: Fixed security issue with passing file paths.