Commit graph

434 commits

Author SHA1 Message Date
Kijin Sung
d78ba8c77c Fix #1734 out-of-order loading of external CSS resource 2021-07-01 14:36:35 +09:00
Kijin Sung
c35d17c47e Fix #1712 merge iframe whitelist and object/embed whitelist 2021-06-19 20:59:36 +09:00
Kijin Sung
6a4d3d912c Fix #1706 support default="null" in XML query parser 2021-06-19 20:26:09 +09:00
Kijin Sung
b01a148675 Fix #1729 @import of external URL in concatenated CSS 2021-06-19 19:39:57 +09:00
Kijin Sung
1c47785276 Support contenteditable="false" (fix #1710) 2021-05-14 23:14:28 +09:00
Kijin Sung
bd075ee409 Add getBodyClassList() and removeBodyClass() methods to Context
https://xetown.com/questions/1569477
2021-05-14 22:40:38 +09:00
Kijin Sung
741a714abd Set standalone attribute to 'auto' if new class syntax is used in module.xml
- 새로 추가된 클래스 문법 사용시 standalone 속성 기본값은 true가 아닌 auto로 지정

- standalone 속성의 의미는 아래와 같음
  - true: 항상 접근 허용 (기존 방식으로 선언한 액션의 기본값)
  - false: mid가 소속 모듈과 일치하거나, admin 모듈인 경우에만 접근 허용
  - auto: module 또는 mid가 소속 모듈과 일치하거나, admin 모듈인 경우에만 접근 허용
    (즉, false와 비슷하지만 exec_json 함수 등에서 module+act로 호출하는 경우에는
    mid가 없더라도 module만 일치하면 호출할 수 있도록 허용하여 개발 편의를 높임)

- 단, global_route 속성이 있는 경우 standalone 속성 기본값은 true임
  (전역 짧은주소는 mid 없이 호출될 수밖에 없으므로)
2021-04-20 21:45:21 +09:00
Kijin Sung
06f23f3b3b Update unit tests for 73695ccd 2021-04-12 22:23:34 +09:00
Kijin Sung
72e7532764 Fix compatibility with PBKDF2 hashes with iteration counts that are not zero-padded 2021-03-14 00:26:15 +09:00
Kijin Sung
715e8d781c Clean up references to travis in all tests 2021-03-12 20:53:40 +09:00
Kijin Sung
c5aaf45c24 Add unit test for list_count = 0 2021-02-26 21:58:38 +09:00
Kijin Sung
e423cba24d Use Origin header before Referer to check CSRF
OWASP에서는 Referer 헤더보다 Origin 헤더를 먼저 체크하는 것을 권장합니다.
Referer가 비어 있는 경우에도 Origin 헤더에는 유용한 정보가 들어 있을 수 있기 때문입니다.

https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html
2021-02-23 16:51:46 +09:00
Kijin Sung
08f8e0ccd4 Increase codeception timeout to 180s 2021-02-09 22:11:09 +09:00
Kijin Sung
6b7486e74f Add 'ifvar' attribute to most query elements
XML 쿼리에서 'ifvar' 속성을 사용하여, 특정 변수가 있을 때만 유효한 테이블이나
컬럼, 인덱스 힌트 등을 지정할 수 있도록 합니다. 어떤 변수를 넣는지에 따라
<condition> 뿐 아니라 <table>, <column>, <index_hint? 등의 적용 여부도
XML 쿼리 수정 없이 자유롭게 컨트롤할 수 있게 됩니다.
2021-02-09 21:58:07 +09:00
Kijin Sung
ccdbddf60b Fix unit test for Validator message (a4ab4f4b) 2021-02-04 22:38:42 +09:00
Kijin Sung
800f323b9c Fix count error when searching by extra_vars
https://xetown.com/questions/1519425
2021-01-31 01:34:56 +09:00
Kijin Sung
957be16a25 Replace all wildcard columns with '1' in count-only subquery #1575 2021-01-29 14:40:28 +09:00
Kijin Sung
3467250e17 Fix missing variables in ConfigHelperTest 2021-01-29 00:42:25 +09:00
Kijin Sung
334b1cc277 Fix remainder of unit test warnings in PHP 8.0 2021-01-29 00:36:24 +09:00
Kijin Sung
678495d69e Fix failing install test in PHP 8.0 2021-01-28 22:41:32 +09:00
Kijin Sung
60465fb2db Fix various warnings in PHP 8.0 2021-01-28 22:32:56 +09:00
Kijin Sung
f46b41f437 Update unit tests for latest codeception 2021-01-28 21:53:44 +09:00
Kijin Sung
aefa19e850 Fix SCSS imports with relative paths not working 2021-01-21 15:45:58 +09:00
Kijin Sung
d5160c28ce Pass RX_REQUEST_URL directly to the Router 2021-01-19 23:28:13 +09:00
Kijin Sung
03e5909036 Add ability to configure index hint with variable
See #1560
2021-01-14 00:40:57 +09:00
Kijin Sung
e2e32902b6
Merge pull request #1544 from shydah/pr/template-srcset
템플릿 내 srcset의 상대경로를 절대경로로 변환하도록 개선
2021-01-07 23:04:59 +09:00
Kijin Sung
af6d60e258 Add unit tests 2021-01-07 22:56:50 +09:00
Kijin Sung
1a204d8c52 Completely disable Debug logging if it is not enabled for the current user
관리자 또는 특정 IP에서만 디버그 기능을 사용하도록 설정된 경우,
그 밖의 요청에서는 어떤 에러메시지, 쿼리, 트리거 소요시간 등의 기록도
디버그 클래스에 저장하지 않도록 변경합니다.

워닝이 많이 발생하는 PHP 8.0에서는 20~30%의 성능 개선 효과가 있습니다.
2021-01-07 02:51:43 +09:00
Kijin Sung
02122cb383 Add unit tests for SELECT COUNT(*) queries 2021-01-07 01:06:02 +09:00
Kijin Sung
3cdcd2dcc0 Accommodate formatter changes 2021-01-06 21:50:27 +09:00
Kijin Sung
09456462f4 #1517 보완: 따옴표 escape 처리에 대한 유닛 테스트 추가 2021-01-02 23:00:59 +09:00
Kijin Sung
7a982f134e #1517 보완: 유닛 테스트 더 많이 추가 2021-01-02 22:52:20 +09:00
Kijin Sung
9e7d654885 #1517 보완: 더 복잡한 조건으로 유닛 테스트 추가 2021-01-02 22:47:14 +09:00
Min-Soo Kim
dc5296f326 Unit test 수정.
키워드 양쪽에 wild-card가 붙는 것이 의도 된 것이 맞음..
2020-12-27 21:21:24 +09:00
Min-Soo Kim
b3abdfd696 Unit test 오타 수정.
- 맨 마지막 AND는 제거되는 것이 의도가 맞음.
- Distinct가 없는 예시.
2020-12-27 21:18:55 +09:00
Min-Soo Kim
3ff91018cc Add unit test + 통합검색 키워드 글자 수 제한 변경 2020-12-27 21:14:51 +09:00
Kijin Sung
02b2d54275 Provide incr() and decr() as static methods of Cache class 2020-12-15 02:13:38 +09:00
Kijin Sung
c275702fbf
Merge pull request #1482 from kijin/pr/color-scheme
다크모드 감지 및 설정을 위한 rx_color_scheme 쿠키값의 표준화
2020-12-15 01:59:17 +09:00
Kijin Sung
436728f7b7 Fix unit test for TemplateHandler 2020-12-15 00:24:26 +09:00
Kijin Sung
49923844b2 Various fixes to remove warnings in PHP 8.0 2020-12-15 00:18:42 +09:00
Kijin Sung
4c62231e88 Fix template syntax for Context::unloadFile() and related unit tests 2020-12-13 21:33:27 +09:00
Kijin Sung
380f779301 Add unit tests for UA::getColorScheme() and UA::setColorScheme() 2020-12-13 20:00:53 +09:00
Kijin Sung
99728527f9 Fix incorrect testing of CSS file index in FrontEndFileHandler 2020-10-31 15:27:47 +09:00
Kijin Sung
c920f6dca4 Refine default allowed methods 2020-10-27 21:38:26 +09:00
Kijin Sung
7f2504b9b7 Allow escaping column type with a backslash to use literal DB type, e.g. date
DB에서 지원하는 타입명과 XE 호환성을 위해 유지하는 타입명이 충돌하는 경우
(예: date) XML 스키마에서 타입명 앞에 백슬래시를 붙이면 (예: \date)
DB에서 지원하는 타입명을 강제로 사용할 수 있도록 함.
2020-10-22 01:15:23 +09:00
Kijin Sung
28b3c2ef34 Fix #1422 incorrect quoting of expressions in XML queries 2020-10-21 23:20:35 +09:00
Kijin Sung
2a87c060b9 Fix #1442 add prefixes to INSERT/UPDATE queries, too 2020-10-21 22:47:34 +09:00
Kijin Sung
627f05c077 Fix unit test for ModuleActionParser 2020-10-19 19:22:24 +09:00
Kijin Sung
ffe9cda5e0 Merge branch 'develop' into next 2020-08-29 23:53:31 +09:00
Kijin Sung
84dfeb64f1 Fix unit test for 313e5275 2020-08-19 17:53:09 +09:00