}
function handle($argarray) {
- $strip = get_magic_quotes_gpc();
- $this->args = array();
- foreach ($argarray as $k => $v) {
- $this->args[$k] = ($strip) ? stripslashes($v) : $v;
- }
+ $this->args =& common_copy_args($argarray);
}
function boolean($key, $def=false) {
function oid_check_immediate($openid_url, $backto=NULL) {
if (!$backto) {
$action = $_REQUEST['action'];
- $args = clone($_GET);
+ $args = common_copy_args($_GET);
unset($args['action']);
$backto = common_local_url($action, $args);
}
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