그누보드(영카트) 5.5.7.1 (★ 5.5.7 버전 사용자님은 필독해 주세요)
그누보드(영카트) 5.5.7 버전에서 lib/common.lib.php 의 아래 코드에 문제가 있었습니다.
[code]
// XSS 관련 태그 제거
function clean_xss_tags($str, $check_entities=0, $is_remove_tags=0, $cur_str_len=0)
{
// space, tab('\t'), formfeed('\f'), vertical tab('\v'), newline('\n'), carriage return('\r') 를 제거한다.
$str = preg_replace('#[[:space:]]#', '', $str);
[/code]
5.5.7 버전 사용자님들께서는 반드시 아래 코드로 수정하여 사용하시기 바랍니다.
[code]
// XSS 관련 태그 제거
function clean_xss_tags($str, $check_entities=0, $is_remove_tags=0, $cur_str_len=0)
{
// tab('\t'), formfeed('\f'), vertical tab('\v'), newline('\n'), carriage return('\r') 를 제거한다.
$str = preg_replace('#[\t\f\v\n\r]#', '', $str);
[/code]
# 변경된 사항
버전 5.5.7.1 수정
https://github.com/gnuboard/gnuboard5/commit/b97565e387891a48481158ec0201cca9610b8e79
form 입력값에서 space를 포함한 값이 넘어오는 경우가 있어 space 는 제외하고 replace 함
https://github.com/gnuboard/gnuboard5/commit/7e3ad2969668797d633fcbad4fcf8501d41fed78
Merge branch 'develop'
https://github.com/gnuboard/gnuboard5/commit/5981fd11bf97daf612873fcc8eb67eea461d2442
모바일에서는 모바일 페이지당 라인수로 적용하도록 수정 (coDribble님,220414)
https://github.com/gnuboard/gnuboard5/commit/6449af2b57090c2a2a1d84f4c96f99d73cb39d56
[code]
// XSS 관련 태그 제거
function clean_xss_tags($str, $check_entities=0, $is_remove_tags=0, $cur_str_len=0)
{
// space, tab('\t'), formfeed('\f'), vertical tab('\v'), newline('\n'), carriage return('\r') 를 제거한다.
$str = preg_replace('#[[:space:]]#', '', $str);
[/code]
5.5.7 버전 사용자님들께서는 반드시 아래 코드로 수정하여 사용하시기 바랍니다.
[code]
// XSS 관련 태그 제거
function clean_xss_tags($str, $check_entities=0, $is_remove_tags=0, $cur_str_len=0)
{
// tab('\t'), formfeed('\f'), vertical tab('\v'), newline('\n'), carriage return('\r') 를 제거한다.
$str = preg_replace('#[\t\f\v\n\r]#', '', $str);
[/code]
# 변경된 사항
버전 5.5.7.1 수정
https://github.com/gnuboard/gnuboard5/commit/b97565e387891a48481158ec0201cca9610b8e79
form 입력값에서 space를 포함한 값이 넘어오는 경우가 있어 space 는 제외하고 replace 함
https://github.com/gnuboard/gnuboard5/commit/7e3ad2969668797d633fcbad4fcf8501d41fed78
Merge branch 'develop'
https://github.com/gnuboard/gnuboard5/commit/5981fd11bf97daf612873fcc8eb67eea461d2442
모바일에서는 모바일 페이지당 라인수로 적용하도록 수정 (coDribble님,220414)
https://github.com/gnuboard/gnuboard5/commit/6449af2b57090c2a2a1d84f4c96f99d73cb39d56
댓글 15개
3년 전
혹시나 싶어 홑따옴표에서 탭이 정상 작동하는지 알아보기 위하여 아래와 같은 코드로 실행해 보니 정상 처리되고 있습니다.
[code]
<?php
$str = "\x09";
echo preg_replace('#[\t]#', 'TAB', $str);
?>
결과 : TAB
[/code]
ps. 홋따옴표에서 홑따옴표로 정정합니다.
[code]
<?php
$str = "\x09";
echo preg_replace('#[\t]#', 'TAB', $str);
?>
결과 : TAB
[/code]
ps. 홋따옴표에서 홑따옴표로 정정합니다.
sinbi
3년 전
@리자 요즘엔 보통, 큰따옴표("), 작은따옴표(')라고 합니다.
https://m.blog.naver.com/ununique/40195683179
https://m.blog.naver.com/ununique/40195683179
나무이야기
3년 전
감사합니다 ^^
3년 전
리자님은 이걸 홋따옴표라고 하시네요.
저는 외따옴표라고 하는데 어느 것이 맞는 건지...
여튼 수고가 늘 많으세요.
저는 외따옴표라고 하는데 어느 것이 맞는 건지...
여튼 수고가 늘 많으세요.
3년 전
@비타주리 : 정확히는 '홑따옴표'입니다~ ^^
3년 전
감사합니다.
3년 전
감사합니다.
3년 전
Warning: Undefined array key "path" in /home/.../common.php on line 486 이런 에러는 수정 어렵나요? 그리고 이전에 쿼리 에러 출력 안나왔었는데~ 이번에 패치 이후에 아주 잘 나옵니다! 감사합니다~
3년 전
감사합니다. ^^
3년 전
감사합니다.
민트다이어리
3년 전
감사합니다. ^^
vplanet
3년 전
패치했는데 된거겠죠? 감사합니다.
3년 전
감사합니다.
3년 전
항상 잘 사용하고 있습니다.
감사합니다.
감사합니다.
3년 전
감사합니다
게시판 목록
영카트5 다운로드
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 공지 |
|
10년 전 | 49798 | |
| 223 | 4년 전 | 2771 | ||
| 222 | 4년 전 | 3791 | ||
| 221 | 4년 전 | 2884 | ||
| 220 | 4년 전 | 2600 | ||
| 219 | 4년 전 | 3716 | ||
| 218 |
|
4년 전 | 3754 | |
| 217 |
|
4년 전 | 5965 | |
| 216 |
|
4년 전 | 3423 | |
| 215 |
|
4년 전 | 3870 | |
| 214 |
|
4년 전 | 4289 | |
| 213 |
|
4년 전 | 4655 | |
| 212 |
|
4년 전 | 7254 | |
| 211 |
|
4년 전 | 3076 | |
| 210 |
|
4년 전 | 3993 | |
| 209 |
|
4년 전 | 3959 | |
| 208 |
|
4년 전 | 3487 | |
| 207 |
|
4년 전 | 2729 | |
| 206 |
|
4년 전 | 3162 | |
| 205 |
|
4년 전 | 3057 | |
| 204 |
|
4년 전 | 2855 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기