Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

Is datetime.strptime safe with untrusted inputs?

$
0
0

Pretty much the title. I want to use datetime.strptime in my flask application with dates I am getting over post requests.

Can I directly feed the input to strptime and catch exceptions and that should be enough security-wise? Should I do any more validation before?


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>