Input validation checks, where data enters, that it has the expected form, preferably against a list of what is allowed, and rejects the rest. Output encoding rewrites data where it leaves for an interpreter, according to that interpreter’s syntax, so that every character is read as data: HTML escaping for a web page, quoting for a shell, placeholders for SQL.
书籍暂未推出简体中文版——当前显示英文版。
Computer Science · 术语表
什么是 Input validation, output encoding?
又称: input validation · output encoding