Commit graph

2673 commits

Author SHA1 Message Date
Kijin Sung
5985ca5b6b Merge branch 'develop' into next 2020-07-05 00:09:26 +09:00
Kijin Sung
03f8081550 Send application/json content-type with JSON responses 2020-07-04 19:08:17 +09:00
Kijin Sung
68f428edd7 Fix getUrl() not resetting existing params when called with an array 2020-07-04 00:29:58 +09:00
Kijin Sung
67dfb3c282 Remove optional SSL 2020-07-03 00:41:59 +09:00
Kijin Sung
9fdcd86f1d Add XMLRPCParser class to parse XE-compatible XML requests 2020-07-03 00:03:58 +09:00
Kijin Sung
84b7e9f8eb Enable router with JSON requests 2020-07-02 16:42:12 +09:00
Kijin Sung
96950161f1 Use Context::getResponseMethod() to decide the response format 2020-07-02 16:28:15 +09:00
Kijin Sung
dd603639e0 Allow JSON requests with actual JSON payload 2020-07-02 16:13:31 +09:00
Kijin Sung
54375d16ad Fix incorrect URL in admin header 2020-07-02 14:29:18 +09:00
Kijin Sung
ad5169bc7a Remove legacy DB classes and XML query parser classes 2020-06-30 12:20:12 +09:00
Kijin Sung
92ff69591f Use new parser to create all tables 2020-06-26 13:51:22 +09:00
Kijin Sung
e9bec851f9 Fix forms with empty actions 2020-06-20 15:50:22 +09:00
Kijin Sung
a6318436c2 Adjust argument priority 2020-06-19 11:33:21 +09:00
Kijin Sung
9372ee4cce Change some internal methods to protected in ModuleHandler 2020-06-18 21:20:23 +09:00
Kijin Sung
99f36f56a6 Change unnecessary ModuleModel instance method calls to static calls in ModuleObject 2020-06-18 21:08:16 +09:00
Kijin Sung
41e02eb89a General cleanup of ModuleHandler init() 2020-06-18 21:04:44 +09:00
Kijin Sung
85fcc79457 Reorganize data exchange format between Context and Router 2020-06-18 20:06:59 +09:00
Kijin Sung
5fa72f8629 Add 404 error handler and update permission data structure 2020-06-18 14:13:23 +09:00
Kijin Sung
e20c06bf00 Replace $_GET in ModuleHandler with router results 2020-06-18 13:48:41 +09:00
Kijin Sung
6286fd3397 Display 404 error if a route cannot be found 2020-06-18 13:25:16 +09:00
Kijin Sung
4c7e3dea82 Return more detailed information from router 2020-06-18 11:23:20 +09:00
Kijin Sung
f8ea38c22d Remove vid handling code from HTMLDisplayHandler 2020-06-18 10:38:49 +09:00
Kijin Sung
221f30484f Fix regexp for detecting valid mid/act/module 2020-06-17 22:54:22 +09:00
Kijin Sung
31c38c03a9 Cleanup unnecessary module instances in ModuleHandler 2020-06-17 22:40:01 +09:00
Kijin Sung
85c2f87f13 Move some security measures from ModuleHandler to Context 2020-06-17 22:31:22 +09:00
Kijin Sung
b5740052fc Move SSL redirection logic to Context::init() 2020-06-17 22:25:40 +09:00
Kijin Sung
480635d131 Fix relative URLs in form actions and other HTML attributes 2020-06-17 18:38:26 +09:00
Kijin Sung
ca183c89a0 Fix missing variables 2020-06-16 20:55:06 +09:00
Kijin Sung
e83e82f8d3 Update Context::getUrl() to use Router 2020-06-14 20:31:57 +09:00
Kijin Sung
a680f89326 Adjust some parts of Context class for better integration with Router 2020-06-12 14:54:05 +09:00
Kijin Sung
baddbd3cba Support XE-compatible rewrite rules 2020-06-12 14:16:36 +09:00
Kijin Sung
f01fb9ae42 Merge branch 'develop' into next 2020-06-12 10:28:36 +09:00
Kijin Sung
494e0ee028 Clean up usage of is_countable() 2020-06-08 20:35:54 +09:00
Min-Soo Kim
67a9aba082 Check is_countable in the DB.class.php 2020-06-07 23:03:52 +09:00
Min-Soo Kim
a641b3103a is_countable?! 2020-06-07 22:56:21 +09:00
Kijin Sung
a5f7d25b32 Fix Object::getObjectVars() 2020-05-21 21:00:01 +09:00
Kijin Sung
4f1264dee5
Merge pull request #1292 from kijin/pr/object-cleanup
모듈 클래스 인스턴스를 직접 생성할 수 있도록 개선
2020-05-20 21:34:41 +09:00
Kijin Sung
14ad62e869 Fix incorrect use of curly braces in legacy classes 2020-05-19 20:52:44 +09:00
Kijin Sung
052930a6d4 Replace some usages of getModel(), getController(), etc. with getInstance() 2020-05-18 21:45:44 +09:00
Kijin Sung
abedfbb55c Implement getInstance() for module classes 2020-05-18 21:20:38 +09:00
Kijin Sung
fda343afd1 Set $this->user only once 2020-05-18 20:41:57 +09:00
Kijin Sung
564563f56c Clean up constructors and other method signatures 2020-05-18 20:37:16 +09:00
Kijin Sung
2cbfd4500c Remove error_return_url more efficiently 2020-05-18 19:54:05 +09:00
Kijin Sung
586f010f55 Allow passing an array of keys/values to getUrl()
getUrl()을 호출할 때 파라미터 이름과 파라미터 값을 풀어서 각각의 파라미터로
넘길 필요 없이, 하나의 연관배열로 넘길 수 있도록 허용합니다.

    $args = array(
        'mid' => $mid,
        'document_srl' => $document_srl,
    );

    getUrl($args);

이 문법을 사용하면 맨 앞에 빈 문자열을 넘겼을 때와 마찬가지로 기존의 URL
파라미터들은 모두 초기화됩니다. 즉 아래와 동일한 효과입니다.

    getUrl('', 'mid', $mid, 'document_srl', $document_srl);

기존의 URL 파라미터들을 남겨놓으려면 기존 방식대로 풀어서 써야 합니다.
2020-05-18 19:41:06 +09:00
Kijin Sung
12f603feee Fix #1288 support meta keywords and description per domain 2020-05-17 21:38:37 +09:00
Kijin Sung
7c7727f8d1 Remove DB version check
PHP 7.0 이상 호스팅에서 MySQL 5.0 미만을 사용하는 사례는 사실상 전무하므로
불필요한 문제를 일으키는 DB 버전 체크 과정을 제거함.

cf. rhymix/rhymix-docs#3
2020-05-10 21:18:34 +09:00
Kijin Sung
098a02a008 Fix #1275 add layout (before) trigger point 2020-04-27 22:46:52 +09:00
Kijin Sung
b193ad73e3 Fix #1274 check chunked uploads after all chunks are ready 2020-04-16 18:17:04 +09:00
Kijin Sung
351cd825cf Fix incorrect flattening of extravar value
- https://xetown.com/questions/1375456
- xpressengine/xe-core#1659
- xpressengine/xe-core#1661
2020-04-08 23:35:37 +09:00
Kijin Sung
efc0d55f98 Restrict UA and lang_type cookies to RX_BASEURL 2020-04-04 23:17:04 +09:00