X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Futil.php;h=795997868305ff09b2ada3614cf7a9a8d1089cf3;hb=d3e47797485d671bd6f806cd0ba72f499e049a66;hp=44ccc0deff546d7c15d107010911fbe706789e37;hpb=58fcb5ac6f91d30a25a4fa03ba87855923c35828;p=quix0rs-gnu-social.git diff --git a/lib/util.php b/lib/util.php index 44ccc0deff..7959978683 100644 --- a/lib/util.php +++ b/lib/util.php @@ -1493,7 +1493,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; } @@ -1521,7 +1529,8 @@ function common_user_uri(&$user) function common_notice_uri(&$notice) { return common_local_url('shownotice', - array('notice' => $notice->id)); + array('notice' => $notice->id), + null, null, false); } // 36 alphanums - lookalikes (0, O, 1, I) = 32 chars = 5 bits