Commit graph

19372 commits

Author SHA1 Message Date
Kijin Sung
3fbb1327d2 Fix #2169 allow simple expressions as default values for table columns 2023-08-27 23:38:29 +09:00
Kijin Sung
06e736178b Support sending all _rx_* POST fields as HTTP headers instead
하위호환성, 부가기능 등을 위한 _rx_* POST 필드가 점점 많아짐에 따라
모두 헤더로 대체할 수 있도록 지원하고, 앞으로 점점 헤더로 바꿀 예정

CSRF 토큰은 예전부터 X-CSRF-Token 헤더를 지원했음
2023-08-27 23:32:31 +09:00
Kijin Sung
dc492345da Fix custom query caller location being shown as DB.php in debug info 2023-08-27 22:57:56 +09:00
conory
0f0dbbb40c Fix namespace regexp not capturing group properly
Conory/Abc/Controllers/Config/Index
→ Group 2: Config/
2023-08-27 01:20:57 +09:00
Kijin Sung
2b55d8cc91 Update Korean IP ranges 2023-08-21 22:44:23 +09:00
Kijin Sung
9fc8bed28a Merge remote-tracking branch 'origin/develop' into develop 2023-08-20 16:59:29 +09:00
Kijin Sung
e6dd1b2bb6 Fix compatibility with communication module skins that don't support window_type=self 2023-08-20 16:59:13 +09:00
Kijin Sung
d88d9c2566 Fix fatal error when copying domain configuration 2023-08-18 13:41:20 +09:00
Kijin Sung
42d09bde65 Provide a single entry point for all command-line scripts
Core example:

php index.php common.clean_empty_dirs
  -> executes common/scripts/clean_empty_dirs.php

Third-party example:

php index.php module_name.script_name
  -> executes modules/module_name/scripts/script_name.php

This should be the preferred method of executing PHP scripts included with
any third-party module, because it ensures that the working environment is
correct. For example, it will set the current working directory to Rhymix root,
check that the UID matches the usual web user, include all core libraries and
initialize the Context properly.

Over time, we will expand the command-line functionality similar to
the 'artisan' command in Laravel.
2023-08-16 23:12:25 +09:00
Kijin Sung
52d11c58fb Clean up comments in index.php 2023-08-16 22:48:14 +09:00
Kijin Sung
ed424f031e Capitalization 2023-08-16 22:45:48 +09:00
Kijin Sung
ea345ad7e1 Improve filtering of "allow" and "referrerpolicy" attributes of <iframe> 2023-08-16 22:41:14 +09:00
Kijin Sung
2f97adb9bb Fix #2166 type mismatch 2023-08-16 22:18:52 +09:00
Kijin Sung
91efe04d7d Version 2.1.3 2023-08-15 14:52:11 +09:00
Kijin Sung
2197b0a982 Add option to control whether boards and pages are indexed by search engines, using the X-Robots-Tag header 2023-08-13 02:03:02 +09:00
Kijin Sung
fde3609f70 Fix #2164 untranslated error message "categoryneeded" 2023-08-12 22:09:08 +09:00
Kijin Sung
d1012c7c42 Fix #2164 clarify help message about disabling categories 2023-08-12 22:05:25 +09:00
Kijin Sung
58d6d51e9f Remove unnecessary condition in autoloader for custom namespaces 2023-08-12 21:55:20 +09:00
Kijin Sung
a7954506f6 Use associative array to store custom namespaces 2023-08-12 21:53:52 +09:00
Kijin Sung
911772393a Fix missing Context::init() in common script 2023-08-12 21:17:52 +09:00
Kijin Sung
47996cb294 Prevent Rhymix reserved namespaces from being registered as custom 2023-08-12 09:50:10 +09:00
Kijin Sung
5823253d60 Optimize order of conditions in autoloader 2023-08-12 01:18:59 +09:00
Kijin Sung
cd0779862e Sort custom namespaces from longest to shortest before compiling regexp 2023-08-12 01:17:14 +09:00
Kijin Sung
48e0f55d6b Support event handlers (triggers) that are only called before/after specific action 2023-08-12 01:14:36 +09:00
Kijin Sung
e0a828079b Fix error when error message is null 2023-08-12 01:12:48 +09:00
Kijin Sung
316cb49729 Update unit test for ModuleActionParser 2023-08-11 22:17:10 +09:00
Kijin Sung
3241354872 Support customizing the default (base) class and install class of a module 2023-08-11 22:09:26 +09:00
Kijin Sung
7502b7308b Support custom namespaces in ModuleHandler and related processes 2023-08-11 21:56:42 +09:00
Kijin Sung
9e13c5ee6e Add convenience functions for XML parsing 2023-08-11 02:37:39 +09:00
Kijin Sung
57be6abc9d Make placeholder for custom prefix support in the future 2023-08-11 02:07:28 +09:00
Kijin Sung
a5bc18f015 Don't add regexp for custom namespaces empty if none are registered 2023-08-11 02:06:35 +09:00
Kijin Sung
32832d1ab2 Support custom namespaces in autoloader 2023-08-11 02:05:23 +09:00
Kijin Sung
4f9f641067 Add regexp to config for custom namespaces 2023-08-11 02:04:59 +09:00
Kijin Sung
4d4d454af0 Fix update_all_modules.php not calling all the update routines of the Install module 2023-08-11 01:38:28 +09:00
Kijin Sung
2219a77fb2 Register action forward routes, event handlers, etc. during initial installation process 2023-08-11 00:40:40 +09:00
Kijin Sung
0ef85632c1 Allow module update even if moduleUpdate() method does not exist 2023-08-11 00:40:13 +09:00
Kijin Sung
68ddac96e7 Remove event handlers and custom namespaces no longer defined by module.xml 2023-08-11 00:34:44 +09:00
Kijin Sung
acc1117d26 Register event handlers and custom namespaces defined in module.xml 2023-08-11 00:16:57 +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
6e7012394e Emphasize NOT in the common script error message 2023-08-10 10:57:02 +09:00
Kijin Sung
df7680d1ce Remove unnecessary $vid in default layout 2023-08-08 23:47:18 +09:00
Kijin Sung
85ceb564fa Add rx_ajax class to login form in xedition 2023-08-08 23:46:29 +09:00
Kijin Sung
ebcd6ceadd Fix return during transaction without rollback (fix #2163) 2023-08-08 23:41:28 +09:00
Kijin Sung
76fdcea292 Add helpful error messages to 3 most common error types
최근 커뮤니티 검색에서 가장 자주 발견되는 에러 타입 3가지:
  - 문자열에 따옴표 안 씀
  - stdClass 정의 안 함
  - 배열이 아닌 것에 배열 함수 사용
2023-08-08 01:12:12 +09:00
Kijin Sung
a36177d772 Dislay actual error location when a fatal error is caught by Debug class 2023-08-08 00:49:53 +09:00
Kijin Sung
e31704ffc2 Move friendly error message feature to Message module 2023-08-08 00:49:14 +09:00
Kijin Sung
26710e2675 Fix CSRF error when IS is requested by POST without CSRF token
https://xetown.com/questions/1779369
https://xetown.com/questions/1737862
https://xetown.com/questions/1776496
2023-08-07 22:25:54 +09:00
Kijin Sung
09d4935a01 Remove vid from IS sample code, and use proper code formatting 2023-08-07 22:22:53 +09:00
Kijin Sung
df6ccfc7d4 Show friendly error message for very common error conditions, such as Object class 2023-08-07 15:14:47 +09:00