isudatateam / datateam

Audit required: External control of file name or path PTC-W6004
Security
Minor
3 months ago3 months old
External variable 'filename' used in file path
31        INSERT into waterquality_data(uniqueid, plotid, valid,
32        sample_type, varname, value) VALUES (%s, %s, %s, %s, %s, %s)
33        """
34    for i, line in enumerate(open(filename)):35        if i == 0:
36            continue
37        (
External variable 'filename' used in file path
31        INSERT into tileflow_data(uniqueid, plotid, valid,
32        discharge_mm, discharge_mm_qc) VALUES (%s, %s, %s, %s, %s)
33        """
34    with open(filename, encoding="utf-8") as fh:35        for i, line in enumerate(fh):
36            if i == 0:
37                continue