mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 18:35:57 +00:00
force strip_tags() on all user input unless explicitly allowed
This commit is contained in:
@@ -725,6 +725,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
// this is used for user http parameters unless HTML code is actually needed
|
||||
function clean($param) {
|
||||
if (is_array($param)) {
|
||||
return array_map(strip_tags, $param);
|
||||
} else if (is_string($param)) {
|
||||
return strip_tags($param);
|
||||
} else {
|
||||
return $param;
|
||||
}
|
||||
}
|
||||
|
||||
function make_password($length = 8) {
|
||||
|
||||
$password = "";
|
||||
|
||||
Reference in New Issue
Block a user