get_group 함수 실행시 string 인지 체크
This commit is contained in:
@ -463,7 +463,7 @@ if ($bo_table) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($gr_id) {
|
if ($gr_id && is_string($gr_id)) {
|
||||||
$group = get_group($gr_id);
|
$group = get_group($gr_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -747,6 +747,10 @@ function get_group($gr_id, $is_cache=false)
|
|||||||
{
|
{
|
||||||
global $g5;
|
global $g5;
|
||||||
|
|
||||||
|
if( is_array($gr_id) ){
|
||||||
|
return array();
|
||||||
|
}
|
||||||
|
|
||||||
static $cache = array();
|
static $cache = array();
|
||||||
|
|
||||||
$gr_id = preg_replace('/[^a-z0-9_]/i', '', $gr_id);
|
$gr_id = preg_replace('/[^a-z0-9_]/i', '', $gr_id);
|
||||||
|
|||||||
Reference in New Issue
Block a user