Commit graph

686 commits

Author SHA1 Message Date
Kijin Sung
926aa1bc7d Remove unnecessary default values for update queries
업데이트 쿼리를 할 때 해당 컬럼에 넣을 값을 넘기지 않으면 기본값이 입력되어
의도치 않게 데이터가 변경될 가능성이 있습니다.
(예: ipaddress를 넘기지 않으면 현재 접속자의 IP 주소로 대체됩니다.)
이런 문제를 방지하기 위해 불필요한 기본값을 모두 제거합니다.
2023-10-04 21:13:56 +09:00
Kijin Sung
cf079833c7 Preserve all other information when an admin updates guest post 2023-10-04 21:06:21 +09:00
Kijin Sung
6228dca221 Fix nick_name is null error when an admin tries to update a guest comment
https://xetown.com/questions/1788734
2023-10-04 20:58:23 +09:00
Kijin Sung
433103bf92 Also apply #2192 fix to document and comment modules; defend null 2023-10-03 14:32:15 +09:00
Kijin Sung
f3bc9a2f03 Clean up trigger registration code in document, comment, file, editor modules 2023-10-02 22:28:16 +09:00
Kijin Sung
79808ee285 Add new trigger points in comment.copyCommentByDocument to replace old, nonstandard "add" name 2023-10-02 22:19:19 +09:00
Kijin Sung
8940dd92ef Clean up legacy class references in comment and document controllers 2023-10-02 21:55:30 +09:00
Kijin Sung
6219a381a4 Fix #2190 missing regdate in comment trigger object 2023-10-02 21:46:26 +09:00
Kijin Sung
9ca2c94fe4 Fix #2186 type error when unexpected values are passed to columnList 2023-09-26 20:08:08 +09:00
Kijin Sung
3c415e18d5 Fix #1204 #407 display more helpful error message when a post cannot be upvoted/downvoted/reported for whatever reason 2023-09-25 22:32:17 +09:00
Kijin Sung
33b2c79891 Fix 2056 add trigger before moving document/comment to trash 2023-09-22 02:07:53 +09:00
Kijin Sung
565cfad15f Clean up trash handling logic 2023-09-22 02:05:14 +09:00
Kijin Sung
62f04a1e02 Fix regression from 26f923d when anonymous comment is deleted 2023-09-16 01:05:18 +09:00
Kijin Sung
26f923d64b Fix #2145 rename $is_admin to more descriptive variable name in some controller actions 2023-09-13 11:15:13 +09:00
Kijin Sung
71e4118bd5 Merge branch 'security/rve-2023-3-4' into develop 2023-09-13 11:02:59 +09:00
Kijin Sung
c8638d2548 Change cache-busting query string format from ?YYYYMMDDHHMMSS to ?t=UnixTime
- 날짜, 유닉스 타임스탬프, 16진수(CKEditor) 등 여러 가지 포맷을 혼용하고 있던
  캐시 방지용 쿼리스트링의 형태를 "유닉스 타임스탬프"로 통일
- 표준 시간대 처리 등 은근히 많은 자원을 소모하는 date() 함수를 사용하지 않음
- t=를 붙여서 정상적인 쿼리스트링 구조가 나오도록 하여, 웹방화벽이나 CDN
  등에서 문제를 일으킬 가능성을 줄임
- 덤으로, 길이도 2바이트씩 짧아짐
2023-09-12 23:15:26 +09:00
Kijin Sung
f9e48fc85c Tentative fix for RVE-2023-3 and RVE-2023-4 2023-09-08 23:43:12 +09:00
Kijin Sung
0fce8eef93 Add $enforce_max_height parameter to getSignature() #2146 2023-07-16 15:13:27 +09:00
Kijin Sung
5a865fc4aa Fix #2141 add trash_srl to trigger objects 2023-07-05 22:29:51 +09:00
Kijin Sung
3215631dfc Move non-member voting, vote canceling, and report canceling options from Board module to Document & Comment modules 2023-07-05 22:27:17 +09:00
Kijin Sung
60ed013915 Add options to allow voting and reporting from the same IP as the author of a document or comment 2023-07-04 23:15:31 +09:00
Kijin Sung
558df8e42f Fix #2116 add space where line-breaking tag is removed 2023-06-19 22:14:08 +09:00
Kijin Sung
f34c27c26b Fix truncated password hash for documents and comments written by non-members, if member module is configured to use a hashing algorithm that produces more than 60 chars 2023-06-19 01:59:27 +09:00
conory
2b41d73c96 escape되는 문자가 많은 댓글을 휴지통으로 이동시킬 수 없는 문제 수정
SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'title' at row 1
2023-06-10 18:55:33 +09:00
BJRambo
5c5d7223ce 사용하지 않는 변수 제거 2023-04-08 19:54:17 +09:00
BJRambo
061f683673 Fix typo 2023-02-27 16:27:09 +09:00
BJRambo
ba94631921 Merge branch 'develop' of github.com:rhymix/rhymix into develop 2023-02-23 21:00:52 +09:00
BJRambo
7d15f6adb9 트리거 변수가 잘못 전달되는 문제 고치고 document_srl 을 추가함. 2023-02-23 20:59:59 +09:00
Kijin Sung
c5267b42fd Remove trailing whitespace 2023-01-30 21:37:41 +09:00
Kijin Sung
651238916b Fix deprecation warnings in PHP 8.2 2023-01-17 00:15:12 +09:00
Kijin Sung
bdae876529 Fix deprecation warnings for using trim() on null 2023-01-16 22:34:26 +09:00
Kijin Sung
bc3502988e Fix incorrectly capitalized class names in document and comment modules 2022-12-27 23:09:25 +09:00
Kijin Sung
2a3f5d3c51 Add statusList parameter to most comment model methods #2035 2022-12-18 01:18:26 +09:00
Kijin Sung
68a247cc16 Add statusList to more queries and adjust some of them #2035 2022-12-18 01:07:10 +09:00
Kijin Sung
4bd49c29bb Fix #2035 add statusList argument to most comment select queries 2022-12-18 00:28:45 +09:00
Kijin Sung
f3ed346e0b Delete unnecessary parameters when calling getComment() 2022-12-18 00:16:40 +09:00
Kijin Sung
dc90a6abf7 #2010 보완: 문서 모듈과의 일관성을 위해 2022-12-18 00:14:21 +09:00
dewekk
03e186f80c 댓글 추천/비추천 취소 버튼 추가
댓글 메뉴에 댓글 추천/비추천 취소 버튼 추가
2022-11-23 23:16:48 +09:00
dewekk
a21d14ac09 댓글 신고 취소 기능 추가 2022-11-23 21:47:57 +09:00
BJRambo
2d1164e670 베트남어 번역 추가 및 수정 2022-10-26 17:28:59 +09:00
Kijin Sung
83e4b763ce Merge branch 'security/document-module-check' into develop 2022-08-16 08:55:44 +09:00
Kijin Sung
170f7f95b9 #1973 보완 - 대댓글이 있을 때만 자리를 남기도록 설정한 경우, 대댓글이 없는 댓글은 삭제되지 않는 문제 수정 2022-08-15 17:46:30 +09:00
Kijin Sung
f81f7f565d #1973 보완 - 코드 정리 2022-08-15 17:44:48 +09:00
conory
582024daf4 Fix 99d16d84c3 2022-08-05 23:31:02 +09:00
conory
99d16d84c3 Fix potential vulnerabilities 2022-08-05 11:19:02 +09:00
conory
0dd567bc00 Add an option to check the permissions of modules linked to documents or comments 2022-08-04 11:06:23 +09:00
Johnny
cd99a67977 코드 정리 2022-07-08 03:25:28 +09:00
Johnny
a8331a48f3 휴지통 으로 보내는 옵션을 기본화 시키고 그러지 않을경우는 항상 자리 남김 또는 삭제 하도록 개선 2022-07-08 03:23:36 +09:00
Johnny
df42e43259 관리자가 게시글을 삭제 할 떄 자리 남김 옵션을 사용할 경우 해당 모듈의 옵션대로 자리 남기도록 개선 2022-07-08 02:48:29 +09:00
Kijin Sung
ec51b64e78 Fix #1928 댓글 자리 남김 + 삭제시 휴지통 이동 기능 동시 사용시 댓글 내용이 유실되는 문제 수정 2022-07-03 00:15:10 +09:00