Commit graph

469 commits

Author SHA1 Message Date
Kijin Sung
a640306123 Move unit test for TemplateParser v1 2023-10-15 00:50:26 +09:00
Kijin Sung
c777b59afb Merge branch 'develop' into template-v2 2023-10-10 14:23:39 +09:00
Kijin Sung
321d0ea88c Fix #2197 preserve position of data-file-srl attribute and trailing slash in tags 2023-10-06 22:49:15 +09:00
Kijin Sung
221602ceb8 Experimental support for data-* attributes in HTML #2194 2023-10-05 22:18:29 +09:00
Kijin Sung
5ae810a54c Fix #2194 allow <details> amd <summary> tags 2023-10-05 20:52:20 +09:00
Kijin Sung
3505d49de6 Separate common Template class from Template v1 parser 2023-10-03 23:27:02 +09:00
Kijin Sung
f8ed6da4ed Support both UUIDv4 and UUIDv7 in Security::getRandomUUID() 2023-10-03 19:22:04 +09:00
Kijin Sung
27c8d32dc5 Clean up missing or inconsistent types in Mail, SMS, Push classes 2023-10-03 15:05:06 +09:00
Kijin Sung
666e7beffc Clean up missing or inconsistent type declarations in Session class 2023-10-03 14:17:25 +09:00
Kijin Sung
b373dc94c0 Add type hints and use class constants instead of protected properties (continued) 2023-10-03 02:55:24 +09:00
Kijin Sung
5d78d114a7 Remove deprecated argument $errcontext from default error handler 2023-09-26 12:06:20 +09:00
Kijin Sung
14f3704215 Update unit tests for new cache-busting querystring format 2023-09-12 23:20:40 +09:00
Kijin Sung
0f1ea1dbc2 Remove characters in writePHPData() comment that could cause syntax error 2023-09-05 02:07:21 +09:00
Kijin Sung
a50041007d Remove UTF-8 BOM and CRLF in templates when compiling them 2023-09-05 01:05:53 +09:00
Kijin Sung
cd8e6371c6 Preserve line numbers when compiling templates 2023-09-05 00:17:15 +09:00
Kijin Sung
35dec01ab0 Fix unit test for FrontEndFileHandler after html5.js removal 2023-08-31 01:04:16 +09:00
Kijin Sung
2b916a8bdb Add unit tests for session and cache-control attributes of module.xml 2023-08-30 22:41:14 +09:00
Kijin Sung
ea345ad7e1 Improve filtering of "allow" and "referrerpolicy" attributes of <iframe> 2023-08-16 22:41:14 +09:00
Kijin Sung
316cb49729 Update unit test for ModuleActionParser 2023-08-11 22:17:10 +09:00
Kijin Sung
d0306df095 Add parser logic for new module.xml settings 2023-08-10 23:52:01 +09:00
Kijin Sung
5881d08f6a Fix unit tests failing if nofollow attribute is turned on 2023-08-10 23:51:50 +09:00
Kijin Sung
2dbdfbaadb Fix #2161 incorrect timestamp when seconds are missing or negative time zone is given 2023-08-04 12:13:09 +09:00
Kijin Sung
56b37b7cbc Remove session keys from unit tests 2023-07-22 20:04:54 +09:00
Kijin Sung
b6e1a4589a Fix #2131 missing translations 2023-06-22 21:55:25 +09:00
Kijin Sung
c3fdee7350 Fix unit test for getUrl() #2123 2023-06-20 22:06:17 +09:00
Kijin Sung
f0237921b9 Fix unit test for getUrl() #2123 2023-06-20 21:28:09 +09:00
Kijin Sung
9aa24c558f Add unit tests for array-based getURL() #2123 2023-06-20 21:13:14 +09:00
Kijin Sung
e238947c9a Add unit tests for DB->connect() and disconnect() 2023-06-19 15:38:24 +09:00
Kijin Sung
31f2d54f1a Update legacy test to reflect WAP removal and DB->isConnected() deprecation 2023-06-19 15:34:40 +09:00
Kijin Sung
7e438350ac Fix unit test for 10cd76d0 change 2023-06-19 02:25:14 +09:00
Kijin Sung
be97b3f5e5 Add unit tests for nested transaction support 2023-04-30 22:53:22 +09:00
Kijin Sung
7755821f20 Add unit tests for DB class equivalence and magic properties 2023-04-30 22:50:49 +09:00
Kijin Sung
5eab0474e5 Fix tests to account for argon2id support 2023-04-24 01:13:47 +09:00
Kijin Sung
3b77781d15 Remove trailing whitespace in all unit tests 2023-01-30 21:48:12 +09:00
Kijin Sung
3f3f270fda Reduce warnings due to undefined variables in templates
- 템플릿에서 변수를 단순 참조할 경우 ?? '' 를 붙여 워닝 방지
- 함수 호출이나 복잡한 문법 안에 들어간 변수까지 처리해 주지는 않음
- 불필요한 오류 메시지를 줄여서 정말 중요한 오류를 찾기 쉽도록
2023-01-17 00:00:34 +09:00
Kijin Sung
174e33ba7c Adjust unit tests for file cache removal 2022-12-30 00:21:17 +09:00
Kijin Sung
5c797c72ca Fix warning in PHP 8.x due to nonexistent targetie attribute 2022-12-28 00:41:35 +09:00
Kijin Sung
9e9adcdb43 Remove support for targetie attribute on assets 2022-12-28 00:35:57 +09:00
Kijin Sung
a667228f29 Change rhymix.less back to rhymix.scss because the LESS converter seems to be abandoned :( 2022-12-26 00:50:02 +09:00
Kijin Sung
fbda332c0a Update test for contenteditable="false" 2022-12-26 00:20:48 +09:00
Kijin Sung
35a93f3928 Remove code that uses defuse/php-encryption (from next branch) 2022-12-25 19:45:12 +09:00
Kijin Sung
0ed1cfdef7 Support YYYY-MM-DD HH:MM:SS format and ISO 8601 format in zdate(), ztime(), and related functions 2022-12-24 22:57:18 +09:00
Kijin Sung
23a827923e Support timestamp() with customizable format in XML query 2022-12-24 22:38:18 +09:00
Kijin Sung
4cc730e489 Support order_default attribute to <index> tag in XML query 2022-12-18 01:18:55 +09:00
Kijin Sung
928a24fac0 Add polyfills for str_contains(), str_starts_with(), str_ends_with() for PHP < 8.0 2022-12-02 15:45:58 +09:00
Kijin Sung
606989c451 Also support $foo->$bar syntax in cond="" and loop="" syntax 2022-10-31 01:40:40 +09:00
Kijin Sung
2a026a6c86 Allow true/false/yes/no values for autoescape
템플릿의 <config autoescape="on" /> 문법이 on, off만 지원하기 때문에
흔히 사용하는 true, false, yes, no, Y, N 등의 불리언 값을 입력하면
안전하지 않은 off로 인식하게 됨. 이 경우에도 적절히 처리하도록 변경.
2022-10-30 22:28:39 +09:00
Kijin Sung
a398c7548d Test more complex syntaxes using some of the filter tests 2022-10-30 21:43:29 +09:00
Kijin Sung
93a7348606 Support $foo->$bar syntax in templates
기존: $__Context->$__Context->bar 로 변환되어 오작동
개선: $__Context->{$__Context->bar} 로 변환되어 정상 작동되며
      변싱 순서에 따라 이 중괄호가 다시 해석되지는 않음
2022-10-30 21:41:40 +09:00
Kijin Sung
7c918c52ca Add iwinv SMS driver to unit test 2022-10-30 17:37:55 +09:00