electricalgorithm / QualityConrolMirrorProduction

Audit required: External control of file name or path PTC-W6004
Security
Minor
a year agoa year old
External variable 'log_file_location' used in file path
 9
10    def __init__(self, log_file_location: str, image_save_location: str):
11        try:
12            self.log_file = open(log_file_location, "a", encoding="utf-8")13        except FileNotFoundError:
14            raise Exception("Logs file couldn't be opened.")
15