bmistry12 / twitter-scraper

Audit required: External control of file name or path PTC-W6004
Security
Minor
2 years ago2 years old
External variable 'data_file_name' used in file path
32        raise RuntimeError()
33    known_locations = []
34    tweets_with_known_location = []
35    with open(data_file_name, 'r', encoding="utf-8") as tweet_file:36        tweet_json = tweet_file.read()
37    tweet = json.loads(tweet_json)
38    with open("./data/cities", 'r', encoding="utf-8") as city_file: