mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
변수 처리시 *srl 변수에 숫자+,(콤마)가 들어가도록 하여 모듈 복사 및 모듈/회원의 그룹 일괄 변경등이 가능하도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4907 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
beabe56505
commit
de8eb4cdd1
5 changed files with 7 additions and 7 deletions
|
|
@ -600,8 +600,7 @@
|
|||
* _srl, page, cpage등의 변수는 integer로 형변환
|
||||
**/
|
||||
function _filterRequestVar($key, $val) {
|
||||
if($key == "page" || $key == "cpage" || substr($key,-3)=="srl")
|
||||
return (strpos($val, ',') !== false)?$val:(int)$val;
|
||||
if( ($key == "page" || $key == "cpage" || substr($key,-3)=="srl")) return !preg_match('/^[0-9,]+$/',$val)?(int)$val:$val;
|
||||
if(is_array($val) && count($val) ) {
|
||||
foreach($val as $k => $v) {
|
||||
if(version_compare(PHP_VERSION, "5.9.0", "<") && get_magic_quotes_gpc()) $v = stripslashes($v);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue