diff options
author | deva <deva> | 2009-04-13 10:01:11 +0000 |
---|---|---|
committer | deva <deva> | 2009-04-13 10:01:11 +0000 |
commit | 9be2a7a340ff28510533c503227b56ff7522f064 (patch) | |
tree | 9eff61601d8f78128d06217f8b61386164993fc1 /utils/convert.php | |
parent | eec8fdf3fd36f6f8511bdb4bea0899f82bf3f6ab (diff) |
Made admin convert all vars (strip slashes and convert xml special chars)
Diffstat (limited to 'utils/convert.php')
-rw-r--r-- | utils/convert.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/convert.php b/utils/convert.php index 6ba1964..4471e8f 100644 --- a/utils/convert.php +++ b/utils/convert.php @@ -8,4 +8,17 @@ function convert($message) return $message; } +function convert_array($vs) +{ + $vars = array(); + + if(sizeof($vs)) { + foreach($vs as $k => $v) { + $vars[$k] = convert($v); + } + } + + return $vars; +} + ?>
\ No newline at end of file |