isaacg1 / pyth

Pyth, an extremely concise language. Try it here:
https://pyth.herokuapp.com/
MIT License
263 stars 57 forks source link

Online web site gives an "Internal Server Error" when the given link ends with a parenthesis #158

Closed refi64 closed 8 years ago

refi64 commented 8 years ago

https://pyth.herokuapp.com/?code=&debug=0 is ok. If I add a parenthesis to the end (resulting in https://pyth.herokuapp.com/?code=&debug=0( or https://pyth.herokuapp.com/?code=&debug=0)), I get:

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Although it seems odd, this is easy to do by accident when pasting links from Markdown.

Maltysen commented 8 years ago

Well this occurs because the server runs int(debug), which clearly won't work on 0(.

isaacg1 commented 8 years ago

As far as I can tell, this is really a problem, and not worth fixing. Paste a bad link, get an error page.