summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-19 10:11:07 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-19 10:11:07 -0400
commit0d8de282b239e663d5c4dacef7afade846e5cb23 (patch)
treefcb7e76600c482a0f38de5f8f453b9e5c704f663 /lib/util.php
parent08035caa5b6a20affe5772c84a8d786927296b72 (diff)
copy args function
darcs-hash:20080619141107-84dde-a5e018fdac3f72eee13b3093fbd871299cda0739.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index eb019ac7e..a4c30cbe4 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -887,3 +887,12 @@ function common_config($main, $sub) {
global $config;
return $config[$main][$sub];
}
+
+function common_copy_args($from) {
+ $to = array();
+ $strip = get_magic_quotes_gpc();
+ foreach ($from as $k => $v) {
+ $to[$k] = ($strip) ? stripslashes($v) : $v;
+ }
+ return $to;
+} \ No newline at end of file