diff options
Diffstat (limited to 'langs.inc.php')
-rw-r--r-- | langs.inc.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/langs.inc.php b/langs.inc.php index c578dd2ee..bb412f2b8 100644 --- a/langs.inc.php +++ b/langs.inc.php @@ -139,6 +139,18 @@ function locale_underscore_to_hyphen($locale) /** + * Returns sanitized specified $_GET variable by name if it exists and strip tags from it + * + * @param string name of a $_GET vaiable + * + * @return string sanitized string, empty on empty string or on error in filtering +*/ +function get_sane_string($str){ + return (string) filter_input(INPUT_GET, $str, FILTER_SANITIZE_STRING); +} + + +/** */ function show_langs($langs) { |