Commit graph

827 commits

Author SHA1 Message Date
Kijin Sung
dc492345da Fix custom query caller location being shown as DB.php in debug info 2023-08-27 22:57:56 +09:00
Kijin Sung
ea345ad7e1 Improve filtering of "allow" and "referrerpolicy" attributes of <iframe> 2023-08-16 22:41:14 +09:00
Kijin Sung
a7954506f6 Use associative array to store custom namespaces 2023-08-12 21:53: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
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
32832d1ab2 Support custom namespaces in autoloader 2023-08-11 02:05:23 +09:00
Kijin Sung
d0306df095 Add parser logic for new module.xml settings 2023-08-10 23:52:01 +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
df6ccfc7d4 Show friendly error message for very common error conditions, such as Object class 2023-08-07 15:14:47 +09:00
Kijin Sung
a609478db4 Fix "allow" attribute being removed from YouTube iframe code #2159 2023-08-06 18:32:04 +09:00
Kijin Sung
00159407f4 Fix #1933 enable sending FCM message without the "notification" field 2023-08-03 22:44:27 +09:00
Kijin Sung
fc932747e9 Use alias to refer to classes outside of Push namespace 2023-08-03 22:44:21 +09:00
Kijin Sung
7efd6c4b18 Remove unnecessary code in Session class 2023-07-24 02:57:39 +09:00
Kijin Sung
899f65981d Destroy conflicting cookies before, not after, setting own cookie 2023-07-24 02:57:08 +09:00
Kijin Sung
8cf68ec9f1 Resend autologin key if the client has not received it at first request 2023-07-24 02:55:30 +09:00
Kijin Sung
c41229eb17 Separate variables for backward compatibility into their own lines, to prevent confusion 2023-07-23 20:49:38 +09:00
Kijin Sung
a07b8fef58 Remove unnecessary setting of is_webview before session create 2023-07-23 20:45:34 +09:00
Kijin Sung
a2932ee8c8 Add admin setting to control the httpOnly attribute 2023-07-22 20:17:23 +09:00
Kijin Sung
56b37b7cbc Remove session keys from unit tests 2023-07-22 20:04:54 +09:00
Kijin Sung
60a3edc994 Remove session keys, and always set httpOnly 2023-07-22 19:53:51 +09:00
Kijin Sung
c0f9c77902 Revert "Display the current site's favicon if favicon.ico is requested"
This reverts commit 9fcd472d3f.
2023-06-25 19:41:50 +09:00
Kijin Sung
9fcd472d3f Display the current site's favicon if favicon.ico is requested 2023-06-25 19:17:26 +09:00
Kijin Sung
80fa953eb1 Fix undefined property in member info 2023-06-20 01:29:44 +09:00
Kijin Sung
59113fc385 Mark DB->getHandle() as nullable, and update related methods 2023-06-19 15:22:06 +09:00
Kijin Sung
840617eece Mark _query() and _fetch() as deprecated 2023-06-19 15:19:03 +09:00
Kijin Sung
66e1b93b78 Add explicit connect() and disconnect() methods to DB class 2023-06-19 15:00:39 +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
Kijin Sung
e3ce2bcbcc Remove gzip support; rely on webserver instead 2023-06-18 23:05:16 +09:00
Kijin Sung
73e7e17347 Fix warnings in PHP 8.2 2023-06-16 16:23:34 +09:00
Kijin Sung
180ed429cf Fix deprecation error in PHP 8.x when path or domain is null in setcookie() 2023-06-16 15:34:48 +09:00
Kijin Sung
4889852622 Use session.lifetime value if set, otherwise use default of 8 hours 2023-05-21 19:29:32 +09:00
Kijin Sung
0484d8db27 Fix #2111 IDN not being accepted in queries 2023-05-06 22:01:11 +09:00
Kijin Sung
32ffc94dee Move proxy setting to HTTP::_createClient() 2023-05-01 22:26:16 +09:00
Kijin Sung
58ce0defca Add option to control error and query log consolidation 2023-05-01 02:59:22 +09:00
Kijin Sung
a1bd9cc2bc Only record the same error or query once
PHP 8.2로 올라오면서 동일한 오류가 수백~수천 번 반복되어
디버그 데이터가 너무 많은 메모리를 차지하는 문제가 종종 발생하고 있음.

동일한 위치에서 발생한 동일한 오류나 쿼리는 한 번만 기록하고
count를 증가시키도록 하여, 불필요한 메모리 사용을 줄이고
반복되는 오류나 쿼리를 쉽게 찾을 수 있도록 개선함.
2023-04-30 23:56:54 +09:00
Kijin Sung
28bc991048 Replace some rarely used DB class properties with __get() magic method 2023-04-30 22:50:07 +09:00
Kijin Sung
749037249c Add DB->beginTransaction() as an alias to begin() 2023-04-30 22:38:40 +09:00
Kijin Sung
5eab0474e5 Fix tests to account for argon2id support 2023-04-24 01:13:47 +09:00
Kijin Sung
ee5404eab6 Enable password hashing with argon2id algorithm on supported systems (PHP 7.3+) 2023-04-24 01:06:54 +09:00
Kijin Sung
a6774937a2 Add methods for async and multiple concurrent HTTP requests 2023-04-23 16:59:56 +09:00
Kijin Sung
77a7ff9133 Separate HTTP request settings manipulation to its own method 2023-04-23 16:37:33 +09:00
Kijin Sung
6f9bb059e8 Use helper class to handle various error conditions during HTTP request 2023-04-23 14:50:39 +09:00
Kijin Sung
6a9902c3bb Clean up default settings and proxy URL parsing logic 2023-04-23 14:26:19 +09:00
Kijin Sung
8db0b06b6a Fix sender info not being available until the before trigger has been called 2023-04-23 00:40:58 +09:00
Kijin Sung
4f73c9562b Update several mail and SMS drivers to use HTTP class instead of Requests or raw curl 2023-04-23 00:40:30 +09:00
Kijin Sung
cf84d70ca1 Also recognize Content-Type headers with optional parameters 2023-04-23 00:40:03 +09:00