mirror of
https://github.com/Cacti/documentation.git
synced 2026-12-05 22:54:37 +09:00
Spelling mistakes/typos Small addition to Standard-Documentation Merged @cigamit DevelopmentStandards wiki page to Standards-Code-Formatting as Overview. And whatever I forgot to mention :)
17 lines
623 B
Markdown
17 lines
623 B
Markdown
# Security
|
|
|
|
## General Validation
|
|
|
|
Never trust input regardless of where it is coming from! The responsibility
|
|
falls on the library functions to ensure that potentially dangerous input does
|
|
not introduce a security hole. Some sort of sanitation, validation, or quoting
|
|
must be provided for **all** arguments in a function. This ensures that bad
|
|
data does not make its way into an SQL string, a filename, an executable, or
|
|
even another function.
|
|
|
|
Relying on JavaScript-based validation is nice for instant feedback to the
|
|
user, but should not replace validation checking in the PHP code.
|
|
|
|
---
|
|
Copyright (c) 2018 Cacti Group
|