Commit graph

58 commits

Author SHA1 Message Date
Kijin Sung
ce5dc45326 Allow class name to be specified when executing queries
PDO에는 결과를 어떤 클래스로 받아올지 선택하는 기능이 있는데 (기본값 stdClass)
executeQuery()로 쿼리를 실행할 때도 이 기능을 활용할 수 있도록 개선합니다.
stdClass를 받아와서 속성들을 추출한 후 documentItem에 도로 집어넣는 등
비효율적인 부분을 추후 개선하는 데 도움이 될 것으로 예상합니다.
2021-04-25 13:18:47 +09:00
Kijin Sung
49923844b2 Various fixes to remove warnings in PHP 8.0 2020-12-15 00:18:42 +09:00
Kijin Sung
ed7130f552 Add 'raw' result type 2020-06-30 23:28:06 +09:00
Kijin Sung
8a3afa03cc More element handling of executeQueryArray() 2020-06-30 23:05:04 +09:00
Kijin Sung
ad5169bc7a Remove legacy DB classes and XML query parser classes 2020-06-30 12:20:12 +09:00
Kijin Sung
cc271ee154 Initial implementation of DB class based on PDO MySQL driver 2020-06-29 15:45:01 +09:00
Kijin Sung
6f9bfb0bac Remove unnecessary function calls 2020-05-18 21:26:57 +09:00
Kijin Sung
2cbfd4500c Remove error_return_url more efficiently 2020-05-18 19:54:05 +09:00
nemo9l
8ea3f8ccd3 Fix typo 2020-02-13 13:20:20 +09:00
Kijin Sung
70108f858d XEVE-19-001, XEVE-19-003, XEVE-19-006
xpressengine/xe-core@18ec8078eb
2019-05-04 17:36:41 +09:00
Kijin Sung
109203d12b Remove invalid characters from REQUEST_URI 2018-07-31 19:08:02 +09:00
Kijin Sung
3992b4b5bc Fix strict count() behavior in PHP 7.2 2017-12-01 01:49:20 +09:00
Kijin Sung
af7309b807 Consistently use new domain system for URL::isInternalUrl() and checkCSRF() 2017-03-04 22:09:45 +09:00
Kijin Sung
8ad6f40abd Enable ztime() function to process Unix timestamps 2017-02-22 20:20:55 +09:00
Kijin Sung
0a5042ec6e Fix potential fatal error when migrating from previous session 2017-02-11 14:21:21 +09:00
Kijin Sung
b32ae03396 Fix session variables being reset to an empty string 2017-02-11 14:15:38 +09:00
Kijin Sung
e96ac0ba7a Add function to get relative timestamp up to many years, with unit tests 2016-05-26 16:41:20 +09:00
Kijin Sung
37bce0343d Update core classes to refer to UA class for robot detection 2016-03-19 23:32:35 +09:00
Kijin Sung
d325ef99bc Add unit tests for some legacy tests, too 2016-03-16 11:36:36 +09:00
Kijin Sung
cb229c2d66 Clean up namespaces 2016-03-14 21:04:27 +09:00
Kijin Sung
7ecd9230c2 Add MediaFilter class to absorb most EmbedFilter functionality 2016-03-13 09:51:15 +09:00
Kijin Sung
ef6f0c839f Absorb core functionality of stripEmbedTagForAdmin() into HTMLFilter class 2016-03-12 23:17:37 +09:00
Kijin Sung
616d894021 Clean up deprecated functions in common/legacy.php 2016-03-12 22:48:05 +09:00
Kijin Sung
6f53a3f068 Check object whitelist in HTMLFilter class, not EmbedFilter class 2016-03-12 22:35:43 +09:00
Kijin Sung
f577b456ec Absorb removeSrcHack() into HTMLFilter postprocessing method 2016-03-12 22:15:55 +09:00
Kijin Sung
598722b0cd Remove checkXmpTag() and blockWidgetCode() because HTMLPurifier does it better 2016-03-12 21:33:42 +09:00
Kijin Sung
1302d77cec Remove duplicate code from checkCSRF() 2016-03-12 21:05:09 +09:00
Kijin Sung
5d7853645a Remove all calls to checkUploadedFile() 2016-03-12 21:03:26 +09:00
Kijin Sung
b962409652 Use new Security and URL classes in other places 2016-03-12 17:26:41 +09:00
Kijin Sung
b89818e13d Update HTMLPurifier configuration and allow HTML5 2016-03-11 15:29:42 +09:00
conory
90400e2b5f 모두 lang() 함수로 변경 2016-03-06 17:01:15 +09:00
Kijin Sung
be83a34b1e Merge pull request #278 from kijin/pr/fix-csrf-false-positive
#275 기본 URL 변경에 따른 오류 해소
2016-02-16 14:34:53 +09:00
Kijin Sung
516479cf20 Migrate addon, trigger, and widget logging functions to Debug class 2016-02-16 11:01:45 +09:00
Kijin Sung
3614cef84a Modify checkCSRF() to always allow requests from the same hostname 2016-02-15 20:15:27 +09:00
Kijin Sung
51f985c215 Only use error handler and slowlog when debugging is enabled 2016-02-13 11:29:09 +09:00
Kijin Sung
6b4d69bcc2 Remove old debug constants 2016-02-13 11:19:13 +09:00
Kijin Sung
47bca4f2ca Replace debugPrint() and handleError() with new system 2016-02-12 16:43:19 +09:00
Kijin Sung
a75eb80f8e Add getInternalDateTime() and getDisplayDateTime() functions 2016-02-12 09:09:27 +09:00
Kijin Sung
540e1ff9d5 Fix getTimeGap() to return more accurate results 2016-02-12 08:51:21 +09:00
Kijin Sung
96dfdfc840 Merge branch 'develop' into pr/extra-timezones 2016-02-12 08:31:43 +09:00
conory
8dffa0ad93 getTimeGap()에서 타임존으로 인하여 잘못된 시간이 표시된 문제 수정2 2016-02-11 22:36:22 +09:00
Kijin Sung
aaa3e25ad5 Implement more precise timezone handling in edge cases 2016-02-11 21:27:36 +09:00
conory
7881463ac7 getTimeGap()에서 타임존으로 인하여 잘못된 시간이 표시된 문제 수정 2016-02-11 19:01:55 +09:00
Kijin Sung
005d507bfa Do not convert date format automatically 2016-02-07 22:39:27 +09:00
Kijin Sung
e55504e1f4 Merge branch 'develop' into pr/new-config-format
Conflicts:
	common/legacy.php
2016-02-07 22:15:27 +09:00
conory
d5260bab0d zdate()에서 잘못된 배열처리로 인한 오류 수정 2016-02-07 18:30:53 +09:00
Kijin Sung
acd3b66eff Remove outdated timezone list 2016-02-04 17:52:21 +09:00
Kijin Sung
f7191123fd Always use the internal timezone in ztime() function 2016-02-04 09:50:39 +09:00
Kijin Sung
c27da2ed24 Port all time-related functions to new timezone handling system 2016-02-04 09:39:09 +09:00
qw5414
7e48ea11cf slowlog 를 원하는 아이피에서만 실행 하도록 개선 2016-02-01 08:03:03 +09:00