Aug-23-2020, 06:52 PM
hello,
are there any security concerns if i use os.path.isFile() in the context of a Flask web server? i do not want to hardcode web pages so i made an if statement to see if the provided uri matches any files inside the Flask root of templates. so, what the user will enter, will be checked by python to see if it corresponds with any files. i am very new to Python and i come from different languages so i just want to make sure if Python has any kind of not-so-obvious problems with the method i use.
thank you in advance.
are there any security concerns if i use os.path.isFile() in the context of a Flask web server? i do not want to hardcode web pages so i made an if statement to see if the provided uri matches any files inside the Flask root of templates. so, what the user will enter, will be checked by python to see if it corresponds with any files. i am very new to Python and i come from different languages so i just want to make sure if Python has any kind of not-so-obvious problems with the method i use.
thank you in advance.