}
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) {
common_debug("User error '$code' on '$action': $msg", __FILE__);
common_user_error($msg, $code);
}
+
+ function self_url() {
+ $action = $this->trimmed('action');
+ $args = $this->args;
+ unset($args['action']);
+ return common_local_url($action, $args);
+ }
}