An Error from recent project

An error which impressed me most recently is from my second Web project with html, jquery and nodejs to build a little web site(ToDoList). In the front interface, the content of the input box will be sent to back and operate some SQL queries. The error is when user input some special symbols like single quotes ‘, my website went crash, because the single quotes would destroy my SQL statements and lead to some syntax errors in the SQL operation. And I find it from the error log and add some check for the input content from users.

posted @ 2017-02-26 20:56  wazxser  阅读(87)  评论(0编辑  收藏  举报