Commit graph

718 commits

Author SHA1 Message Date
Kijin Sung
08964804be Use more granular exceptions and error messages in important modules 2018-09-06 10:11:05 +09:00
Kijin Sung
10c8d11785 Add FeatureDisabled and SecurityViolation exception classes 2018-09-06 10:00:47 +09:00
Kijin Sung
d8a0773b97 Replace $this->stop() with proper exceptions 2018-09-06 00:19:47 +09:00
Kijin Sung
fe4e336f2b Add 3 special exception classes for common situations 2018-08-27 00:21:21 +09:00
Kijin Sung
1863edcbb8 Update some modules to throw exceptions instead of BaseObject 2018-08-27 00:03:12 +09:00
Kijin Sung
45851744c1 Fix #1031 deleted comment is shown as secret 2018-08-04 21:54:41 +09:00
Kijin Sung
f12cf74dda Revert "다른 프레임워크와 css 충돌을 피하기 위해 rhymix.less의 class/id 이름에 prefix 처리"
This reverts commit b1cb1f3f34.
2018-08-04 20:56:24 +09:00
conory
b1cb1f3f34 다른 프레임워크와 css 충돌을 피하기 위해 rhymix.less의 class/id 이름에 prefix 처리
변경전의 xe.less 파일도 rhymix.less와 함께 load 하여 호환정 유지

CSS 충돌 예)
bootstrap의 .btn
사용 예)
bootstrap 사용시엔 {Context::unloadBasicFiles('xe')}으로 unload 시키면 문제없음
2018-08-03 19:45:30 +09:00
conory
5ebbbf5b36 파라미터 이름이 *srl일 경우 발생되는 호환 문제 수정
mid의 레이아웃(layout_srl) 설정을 '사이트 기본 레이아웃' (음수값 -1) 으로 할 수 없는 문제 수정
2018-04-23 01:05:28 +09:00
conory
eb17819ce0 게시판의 '작성 글 보기' 에서 닉네임과 상관없이 항상 해당 회원의 게시물만 출력될 수 있도록 개선
('작성 글 보기' 이용시 다른 회원의 게시물도 출력될 수 있는 문제 수정)
2018-04-06 00:17:46 +09:00
Kijin Sung
adb93006b4 Add option to limit the size of documents and comments
지나치게 용량이 큰 글을 등록하여 서버 과부하나 트래픽을 유발하는 경우가 있음.
예: ㅋㅋㅋ를 1000만 번쯤 복사해서 넣는다거나...

이런 문제를 막기 위해 게시판에서 글과 댓글의 용량을 제한할 수 있도록 함.
지저분한 태그가 많이 붙은 HTML 콘텐츠을 복붙하는 경우에 대비하여
기본값은 글 1024KB, 댓글 128KB로 여유있게 책정하였으며
사이트 특성에 따라 줄이면 됨.
2018-03-07 15:51:36 +09:00
BJRambo
6496055581 각종 PHP 7.2 에서 나는 워닝에러를 고침 2018-01-25 20:57:01 +09:00
Kijin Sung
61bad46913 게시판에서 상담 기능과 익명글 기능을 동시 사용 시 문제 고침
xpressengine/xe-core#2140
2018-01-10 23:10:02 +09:00
conory
f93ad9c0f6 코드 정리 2017-12-13 21:10:46 +09:00
conory
f8ac11bda6 isAccessible()로 통일 2017-12-12 13:23:45 +09:00
Kijin Sung
1280f6a0a0 Fix allow_no_category being overwritten on module config change 2017-12-11 00:11:52 +09:00
Kijin Sung
eb3108b446 Add option to allow selecting no category
관리자 이외의 사용자가 글을 쓸 때 분류를 선택하지 않아도 되도록
허용하는 옵션 추가 (기본값: 허용하지 않음)
2017-12-05 23:36:26 +09:00
Kijin Sung
3992b4b5bc Fix strict count() behavior in PHP 7.2 2017-12-01 01:49:20 +09:00
Kijin Sung
84e5542d77 Remove unnecessary use of BaseObject
- 트리거 등 반환값이 필요하지 않은 곳에서 new BaseObject()를 반환하는 것 삭제
- 모듈 설치, 업데이트 후 무의미한 new BaseObject()를 반환하는 것 삭제
- 사용자에게 에러 메시지를 돌려주는 용도로 new BaseObject(-1, '에러메시지')를
  사용하는 경우는 대부분 $this->setError()로 변경함. 언어 변환과 sprintf()
  처리까지 한 번에 이루어지므로 이쪽이 더 편리함.
2017-12-01 00:54:51 +09:00
BJRambo
f3f40f6859 php7.2호환을 위해 변경한 클래스 Object 를 BaseObject으로 변경 2017-11-28 20:01:28 +09:00
Kijin Sung
2f10d5c0b5 94cdcb2 보완
dispBoardCommentPage 액션은 HTML을 반환하도록 하여 애드온 작동에 지장이 없도록
변경함. (포인트 레벨 아이콘 등이 표시되지 않는 문제가 있었음.)

getBoardCommentPage 액션은 기존 방식처럼 XMLRPC 또는 JSON으로 호출 가능함.
2017-11-23 16:11:51 +09:00
Kijin Sung
460cfd5455 Eliminate unnecessary require_once in mobile classes 2017-11-21 18:09:23 +09:00
Kijin Sung
94cdcb2e7c Allow dispBoardCategory() and dispBoardCommentPage() to be used in PC
모바일에서만 사용할 수 있었던 dispBoardCategory() 액션을 PC에서도 사용할 수
있도록 변경함. (PC용 스킨에서 category.html 템플릿을 제공하는 경우에 한함)

모바일에서만 사용할 수 있었던 getBoardCommentPage() 액션의 이름을
dispBoardCommentPage()로 바꾸어 PC에서도 사용할 수 있도록 변경하고
기존의 모바일 getBoardCommentPage() 액션은 dispBoardCommentPage()로 연결함.
(get으로 시작하는 액션명은 원래 model에서 써야 하는데 잘못 지정됨)

누가 모바일 스킨을 만들다가 필요해서 추가한 액션인 것 같은데
왜 PC에서는 사용할 수 없도록 해놓았는지 의문임.
비슷한 기능을 PC에서 사용하기 위해 getBoardCommentPageForPC() 등의 액션을
임의로 추가하여 사용하는 사이트가 은근히 많이 보임.
2017-11-21 15:56:17 +09:00
Kijin Sung
7b34a19574 XEVE-17-029
xpressengine/xe-core#2163
2017-10-19 13:57:30 +09:00
bnu
fc1ba5b9ce fix #2133 비회원 게시물 작성폼에서 불필요한 공백으로 인한 틀어짐 고침 2017-10-12 14:45:53 +09:00
Kijin Sung
69b868c77f Fix #919 make child comment secret if parent comment is secret 2017-09-28 17:29:47 +09:00
Kijin Sung
cc0f2c5a62 Clean up language files for board module configuration 2017-09-27 20:35:26 +09:00
BJRambo
f75efa1b5d Improve anonymous nickname to generate random number per date and document.
https://www.xetown.com/qna/745244
2017-09-27 15:48:02 +09:00
bnu
3ee3d63cb7 fix #2142 onclick이 사용된 새 창 열기를 target 속성으로 변경
- 통합검색 모듈 misol_town 스킨도 마찬가지로 수정
2017-09-11 18:21:16 +09:00
BJRambo
2cbe9b691f Display to extra_vars html in update log viewer 2017-08-24 08:10:41 +09:00
Kijin Sung
1f3bf62c34 Fix mobile editor in default skins
게시판별 에디터 설정이 아닌 에디터 모듈의 기본 설정이 적용되는 문제 수정
2017-07-08 23:51:52 +09:00
Kijin Sung
917b56b07e Fix #867 fallback to 'default' skin instead of default skin 2017-07-04 22:03:58 +09:00
Kijin Sung
2cd6140a89 Also allow selecting a PC layout for mobile view 2017-07-01 21:03:10 +09:00
Kijin Sung
27e2106c96 Use PC skin if mobile skin name is /USE_RESPONSIVE/ 2017-07-01 20:25:59 +09:00
Kijin Sung
dae2e9c2d8 Add option to use PC skin as mobile skin, too 2017-07-01 20:25:10 +09:00
Kijin Sung
c891415105 Use new Mail class in board and comment modules for all notifications 2017-06-29 17:45:44 +09:00
Kijin Sung
fcef0427e6 Enable the editor in all default mobile skins 2017-06-27 17:41:46 +09:00
bnu
4ca6af970e #2066 simpleGray 스킨의 댓글에서 p 태그에 적용된 display 스타일 제거 2017-06-26 13:37:34 +09:00
BJRambo
55ffe34ca5 비밀글 채크박스를 제거
비밀글은 이미 오른쪽 공개/비밀 선택하는 ratio 에서 처리하기 때문에 비밀글기능에 다시 채크를 할 필요가 없습니다.
2017-06-11 10:35:59 +09:00
conory
700f148740 불필요한 코드 제거
standalone="false" 속성이 적용되어있으므로 다른 모듈에서 게시판 act를 사용 할 수 없음
2017-06-03 14:49:54 +09:00
conory
937cbf58f0 procDocumentTempSave, procBoardInsertDocument 코드 정리
- procDocumentTempSave
아무나 제목 굵기, 색상을 적용할 수 있는 문제 수정
게시판 제한 설정을 우회하여 게시물을 수정할 수 있는 문제 수정

- procBoardInsertDocument
게시물을 비공개(PRIVATE)로 전환할 수 있는 문제 수정 (글쓰기 포인트 획득용으로 악용 방지)
익명 이름에서 '$DOCNUM'가 제대로 작동하지 않는 문제 수정
임시 문서를 게시할 경우 게시판 제한 설정에 걸려 게시가 안될 수 있는 문제 수정
2017-06-03 14:13:34 +09:00
Kijin Sung
0be7e72fe5 Fix #836 compatibility with third-party modules that use document_srl for their own purposes 2017-05-30 12:48:52 +09:00
howtoxe
f104802ea2 권한 취약점 패치
#2083
2017-05-30 11:48:38 +09:00
Kijin Sung
d3db01aae0 Add option to control updating the document's last-updated timestamp when a comment is posted 2017-05-07 21:37:37 +09:00
bnu
5798face60 close #2068 사용하지 않는 필터 제거 2017-04-14 15:19:21 +09:00
Kijin Sung
d343422541 Fix exposure of unnecessary information via board API 2017-04-13 23:18:49 +09:00
CONORY
44d6c8f63f Merge pull request #786 from conory/pr/permission
module.xml <action>에 permission 속성 추가
2017-04-10 15:43:08 +09:00
conory
1d4437135c 승인 권한 (grant) 구분자 변경 2017-04-08 18:10:30 +09:00
conory
fc6206ab75 module.xml 3차 정리
action에 permission 속성을 부여하는 방식으로 변경
board, page 모듈 action에  grant 퍼미션 설정
2017-04-08 15:50:06 +09:00
CONORY
87131a1b93 Merge pull request #765 from conory/pr/grant
모듈 권한 정리 및 퍼미션 체크 지원
2017-04-06 21:58:53 +09:00