ranaroussi / quantstats

Audit required: External control of file name or path PTC-W6004
Security
Minor
1 occurrence in this check
External variable 'template_path' used in file path
  76    win_year, win_half_year = _get_trading_periods(periods_per_year)
  77
  78    tpl = ""
  79    with open(template_path or __file__[:-4] + ".html") as f:  80        tpl = f.read()
  81        f.close()
  82