简体   繁体   中英

Where are the Joomla / Drupal input validation scripts located?

我想看看Joomla / Drupal如何进行验证/安全性,输入验证脚本位于何处?

There isn't a single/central validation code for user's input in Drupal. Each form as it own validations handlers, search for _validate in the Drupal API . In addition, there is some re-usable validation functions such as valid_url() and valid_email_address() . Drupal also encourage output sanitization with functions such as t() , check_plain() or filter_xss() . Drupal discourage bad-practive regarding SQL injection by favoring placeholders in query string, see db_query() .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM