I wrote a function in Python, that must return file from specific folder and all subfolders. File name taken from function parameter:
def ReturnFile(fileName)
return open("C:\\folder\\" + fileName,"r")
But as fileName
you can pass for example: "..\\Windows\\passwords.txt
" or some unicode symbols for dots.
How to fix it? Some RegExp maybe?