From 9be2a7a340ff28510533c503227b56ff7522f064 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 13 Apr 2009 10:01:11 +0000 Subject: Made admin convert all vars (strip slashes and convert xml special chars) --- utils/convert.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'utils/convert.php') 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 -- cgit v1.2.3