summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2010-03-10 20:47:49 +1300
committerBrenda Wallace <shiny@cpan.org>2010-03-10 20:47:49 +1300
commit47034553fea0ad760596eae416a675b93dd9380c (patch)
treec6750d642cfd5d71b331e4ed7bce29247f1277d6 /lib/util.php
parentc89ed16d24d56879bf40a70d500509d1d42a4532 (diff)
parent9653cb9f0a590417245063f905a2089f03b9e7b2 (diff)
Merge commit 'mainline/0.9.x' into 0.9.x
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index da2799d4f..c5dacb699 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -1462,7 +1462,15 @@ function common_copy_args($from)
$to = array();
$strip = get_magic_quotes_gpc();
foreach ($from as $k => $v) {
- $to[$k] = ($strip) ? stripslashes($v) : $v;
+ if($strip) {
+ if(is_array($v)) {
+ $to[$k] = common_copy_args($v);
+ } else {
+ $to[$k] = stripslashes($v);
+ }
+ } else {
+ $to[$k] = $v;
+ }
}
return $to;
}