Commit graph

900 commits

Author SHA1 Message Date
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
Kijin Sung
d731198aa6 Cache and reuse the Guzzle client for multiple requests 2023-04-23 00:26:27 +09:00
Kijin Sung
c825fdaf43 Add Rhymix Framework HTTP class to wrap Guzzle 2023-04-23 00:18:37 +09:00
Kijin Sung
901bdab6a9 Filter more potentially malicious tags in SVG uploads 2023-04-10 22:51:07 +09:00
Kijin Sung
969ee5d068 Fix #2085 SCSS compile error when variables contain false, null, empty string, etc. 2023-04-08 11:59:55 +09:00
Kijin Sung
ee52d17fee Fix missing property 'caller' of Push class 2023-03-23 20:54:54 +09:00
Kijin Sung
29bf72c998 Fix #2077 don't check hwpx files as XML 2023-03-05 23:03:50 +09:00
Kijin Sung
5ecf8ea99b Fix warning when query is executed from outside of a class or function 2023-02-06 01:57:18 +09:00
Kijin Sung
a9f72a5cd2 Remove trailing whitespace 2023-01-17 20:57:44 +09:00
Kijin Sung
33b58b5e77 Convert ?: to ?? 2023-01-16 22:31:50 +09:00
Kijin Sung
4c15e8fef5
Merge pull request #2066 from Waterticket/develop
fix deprecated warnings
2023-01-16 22:27:24 +09:00
Kijin Sung
a6872d6e2a Remove all type declarations in DBHelper/DBStmtHelper methods inherited from PDO, for broad compatibility with PHP 7 and 8 2023-01-16 22:21:48 +09:00
Kijin Sung
8eb387de3c Fix autoloader not working for DBStmtHelper in PHP 7.x
SQLSTATE[HY000]: General error: PDO::ATTR_STATEMENT_CLASS requires format array(classname, array(ctor_args));
2023-01-16 21:57:01 +09:00
Kijin Sung
0ba4c51c3c Fix type error in DBHelper::query() when there is a query error 2023-01-16 21:39:30 +09:00
Kijin Sung
c07efe7905 Fix deprecation notices in PHP 8.2 #2064 2023-01-16 21:24:59 +09:00
Kijin Sung
8e2c4b3ef9 Fix #2065 add ReturnTypeWillChange attribute to DBHelper 2023-01-16 21:16:13 +09:00
Waterticket
f58e865f4d fix deprecated warnings 2023-01-16 09:29:34 +00:00
Kijin Sung
5f4e7946a3 Fix deprecation warning in PHP 8 2023-01-06 18:37:02 +09:00
Kijin Sung
7688c8fb38 Merge branch 'master' into develop 2023-01-03 14:01:34 +09:00
Kijin Sung
5c009ba28f Fix type error when page_count is not defined in query (#2039 regression) 2023-01-03 13:56:46 +09:00
Kijin Sung
2437de31f3 Remove wincache and xcache drivers - they are no longer maintained for PHP 7.2+ 2022-12-30 00:16:06 +09:00
Kijin Sung
8234fd5c7b Disable file cache driver 2022-12-30 00:10:18 +09:00
Kijin Sung
9e9adcdb43 Remove support for targetie attribute on assets 2022-12-28 00:35:57 +09:00
Kijin Sung
d34d08438f Fix #2052 move all charset and import statements to the beginning of concatenated CSS scripts 2022-12-28 00:06:50 +09:00
Kijin Sung
cc2a8597b5 Fix forward-incompatible use of null in DateTime constructor 2022-12-26 16:45:53 +09:00
Kijin Sung
17279c264b Add support for short download URLs #1875 #1922
- Originally committed on April 3, 2022
- Thanks to @misol @conory
- getDownloadUrl()에서 기존 메소드 형태 최대한 그대로 유지하는 방향으로 작업
  (단, source_filename 파라미터를 전달하지 않으면 긴주소로 강제됨)
- getDirectFileUrl()의 불필요하게 복잡한 코드 정리
- getFileList()에서 이미지가 아닌 파일도 절대경로를 반환하도록 수정
- procFileDownload, procFileOutput에서 URL에 포함된 파일명을 검증하도록 하여
  동일한 첨부파일에서 파일명 부분만 변형한 링크를 무한 생성할 수 없도록 함
- 짧은주소 미사용시 불필요한 module_srl 파라미터 제거
2022-12-26 16:23:19 +09:00
Kijin Sung
0029d1a1ec Rename all common/framework source files to be case-sensitive 2022-12-26 16:13:09 +09:00
Kijin Sung
426a971c6c Remove $relax_key_checks because we are no longer using Flash uploader 2022-12-26 01:08:04 +09:00