24
Katupel
7y

Well, I feel reaaaally secure now...

Comments
  • 4
    I don't understand why some file hosting websites restrict certain file types. It's not like you can execute them on the server. And if you find an exploit to do that, you could execute them regardless of the extension.

    Also, when downloading them, the server sends a download header, so even js files are not executed on the browser.
  • 4
    Why would you check if the file NAME is "js"?
  • 0
    Aaahhh, make a check for what OS you're using and make an if else using "/"'s and "\\"'s depending on the OS, otherwise it's not cross platform and it's in Python :(
  • 0
    I started out in Python, but when I made the switch to Java/C#, I couldn't code in Python without those optional parameter type declarations. I just couldn't, my paranoia wouldn't let me.

    Oh yeah, and that code needs some work.
  • 0
    @TheVariant windows actually supports "/"
  • 1
    @ThoughtfulDev No it doesn't. Actually it has *some* support for forward slashes. It doesn't work every time though.
Add Comment