summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
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