Kijin Sung
6f35f5bafc
Fix strict count() behavior in PHP 7.2
2017-12-01 01:42:03 +09:00
Kijin Sung
2dbc77ff68
Eliminate null returns in DB class
2017-11-30 23:03:18 +09:00
람츠
f4c19a3e0f
$request_method 속성에 대한 주석변경
...
JSON 추가.
2017-11-28 19:41:52 +09:00
람츠
e2704f684a
Update Context.class.php
2017-11-28 19:41:41 +09:00
Kijin Sung
1a81fd43f3
Convert Object class to BaseObject in core classes
2017-11-27 22:34:28 +09:00
Kijin Sung
9a83e71bff
Allow adding error message and sprintf() variables using setError()
...
xpressengine/xe-core#2181 적용시 에러 반환 문법을 단순화하기 위한 조치
기존 방식: return new Object(-1, '에러메시지');
XE 제안 방식: return class_exists('BaseObject') ? new BaseObject(-1, '에러메시지') : new Object('에러메시지');
라이믹스 방식: return $this->setError('에러메시지');
기존의 setError() 메소드가 에러 코드만 받을 수 있어서 호환성 보장에 도움이 안 되므로
에러 코드와 에러 메시지를 동시에 넣을 수 있도록 개선하고,
에러 코드를 넣지 않고 에러 메시지만 지정해도 자동으로 -1 에러 코드가 들어가도록 하였음.
(첫 번째 인자가 정수인지 아닌지에 따라 판단함.)
setError(), setMessage(), setMessageType() 등 기존에 무의미한 반환값을 가지던 메소스들 모두
$this를 반환하도록 함으로써 액션이나 트리거 등의 반환값으로 유효하도록 하고,
원할 경우 method chaining까지 사용할 수 있음.
또한 에러메시지에 변수를 넣어야 할 경우
return new Object(-1, sprintf(Context::getLang('error_msg'), $var1, $var2));
이렇게 복잡해지는 문제도 해결하기 위해
setError()에 추가로 넣은 인자는 모두 자동으로 sprintf() 처리를 거치도록 함.
예: return $this->setError('error_msg', $var1, $var2);
즉, 아래와 같은 호출 형태가 모두 유효함.
- $this->setError(-1);
- $this->setError(-1, 'error_msg');
- $this->setError(-1, 'error_msg', $var1, $var2);
- $this->setError('error_msg');
- $this->setError('error_msg', $var1, $var2);
단, 이 커밋 이후 신규 작성하는 코어 클래스나 서드파티 자료에서만 사용할 수 있음.
기존 버전과의 호환성을 유지하기를 원하는 서드파티 자료는 XE에서 제안한 삼항식을 사용해야 함.
2017-11-27 16:33:33 +09:00
Kijin Sung
a8da651f29
Change data type of module_config.config to bigtext
...
xpressengine/xe-core#2179
xpressengine/xe-core#2180
2017-11-27 13:03:47 +09:00
Kijin Sung
a29fa554c1
Fix compatibility with sketchbook skin after removal of XpressEditor
...
스케치북 스킨 등에서 XpressEditor 파일을 강제로 로딩하려고 할 경우
CKEditor의 동일 파일로 치환하도록 변경함
https://www.xetown.com/qna/778780
오류가 발생하는 사이트에서는 캐시파일 재생성이 필요할 수 있음
2017-10-29 01:43:22 +09:00
Kijin Sung
87d8ba41e3
Update procMemberAuthAccount
...
- 불필요한 중복 체크 제거
- 인증 성공시 alert을 사용하지 않고 인증 관련 안내 메시지를 XE_VALIDATOR_MESSAGE에 넣은 후 로그인 화면으로 리다이렉트
- XE_VALIDATOR_MESSAGE를 임의로 지정할 수 있도록 Context::setValidatorMessage() 함수 추가
2017-10-13 17:08:35 +09:00
Kijin Sung
c686cb3229
Clean up duplicate blocking of common scripts
2017-09-20 17:32:11 +09:00
Kijin Sung
a722f279d9
Fix #922 failure to load scripts with the name 'jquery' in it
2017-09-20 17:16:48 +09:00
bnu
f867efacea
fix #2146 XEVE-17-028
2017-09-12 23:38:43 +09:00
Kijin Sung
ecb598dc15
Add option to specify a global header script per domain
2017-09-12 14:39:33 +09:00
Kijin Sung
d17eaf63a0
Preserve some commonly used POST variables
...
091199bc
2017-09-11 19:49:15 +09:00
bnu
7721a64dc9
fix #2139 XEVE-17-026
...
- 제보 및 패치 제공 : @kijin
2017-09-11 18:22:07 +09:00
Kijin Sung
1bf96e646e
Add Blankshield.js and URI.js
2017-09-11 18:04:46 +09:00
BJRambo
f033e4e36f
Fix comment Context::set parameter type.
2017-08-24 08:08:46 +09:00
BJRambo
ee0ac2b573
Fix Context::get return comment
2017-08-17 16:55:21 +09:00
Kijin Sung
73c09ce876
Fix handling of external CSS/JS URLs with query strings
...
xpressengine/xe-core#2114
2017-08-16 23:05:45 +09:00
bnu
ac953cc216
특정 입력 값에 대한 escape 처리를 스킨 출력 시 적용되지 않는 문제 고침
...
- @kijin 님께서 알려주셨습니다
2017-08-16 22:41:38 +09:00
Kijin Sung
118b209042
Add Context::isLocked() to detect site lock easily
2017-07-31 23:33:25 +09:00
Kijin Sung
a3b557dcbc
Revert "Fix #881 disable display.before triggers if site is locked and visitor is not admin"
...
This reverts commit 44be0468ab .
2017-07-31 15:57:53 +09:00
Kijin Sung
44be0468ab
Fix #881 disable display.before triggers if site is locked and visitor is not admin
2017-07-23 22:21:28 +09:00
conory
468b1cc00f
XML 응답 처리 문제 수정
...
rss 요청시 Content-Type: text/xml 헤더로 응답할 수 없었던 문제 수정
2017-07-22 21:32:16 +09:00
Kijin Sung
8289a4b925
Do not use output buffering if invoked on the CLI
2017-07-08 21:43:44 +09:00
Kijin Sung
e51836c0d9
Convert all relative src attributes, not just images
2017-07-05 17:32:11 +09:00
Kijin Sung
5ae15f4b66
Remove _rx_ajax_compat and _rx_csrf_token from request vars
...
JSON/XMLRPC 호환성 확보와 CSRF 공격 방지를 위해 사용되는 이 변수들이
Context::getRequestVars()에 포함되어 불필요하게 여기저기 저장되거나
URL에 포함되어 나오는 문제를 방지합니다.
2017-07-02 21:46:50 +09:00
Kijin Sung
21072195c0
Prevent overwriting jQuery and other common scripts
...
- Block third-party programs trying to load their own version of jQuery
- Block obsolete scripts such as xe.css and xe.js
- Block minified versions of the above, too
- Increase blocking index threshold from 1,500,000 to 1,500,000,000
- Add unit tests for script blocking
2017-07-02 00:36:19 +09:00
Kijin Sung
02d73f3905
Fix incorrect fallback to site default skin
2017-07-01 21:52:36 +09:00
Kijin Sung
2cd6140a89
Also allow selecting a PC layout for mobile view
2017-07-01 21:03:10 +09:00
Kijin Sung
7904304dc3
Support /USE_RESPONSIVE/ as a valid mobile skin option
2017-07-01 20:25:41 +09:00
bnu
e91c2114ab
fix #2110 다중 파일을 업로드 시 첨부한 파일의 목록을 잘못 처리하는 문제 고침
...
- `aaa[]`, `bbb[]` 폼 전송 시 `aaa[]`파일이 `bbb[]`에도 동일하게 업로드한 것처럼 잘못 처리하는 문제
2017-06-27 14:40:46 +09:00
Kijin Sung
395fa7c229
Revert "Fix #844 fill in default act if none is given in the URL"
...
This reverts commit d25cf782e9 .
2017-06-10 09:38:48 +09:00
Kijin Sung
d25cf782e9
Fix #844 fill in default act if none is given in the URL
2017-06-09 22:46:39 +09:00
Kijin Sung
1233be446c
Fix warning in database logging routine
...
https://www.xetown.com/qna/610874
2017-05-30 20:53:02 +09:00
Kijin Sung
0be7e72fe5
Fix #836 compatibility with third-party modules that use document_srl for their own purposes
2017-05-30 12:48:52 +09:00
bnu
11707a8821
fix #2094 검색과 관련된 입력 값에 대한 encode 적용
2017-05-30 12:20:30 +09:00
conory
07ede48e7c
canonical url이 엔티티로 중복 처리 될 수 있는 문제 수정
2017-05-16 19:27:06 +09:00
Kijin Sung
8ca0ca4a47
Fix Context::loadLang() compatibility when lang.xml is specified
2017-05-05 11:47:22 +09:00
Kijin Sung
d240fcbb70
02731e1 보완
...
일부 요청에서 JSON을 반환할 때 Content-Type: text/xml 헤더가 나오는 문제 수정
2017-04-27 11:01:28 +09:00
conory
02731e1a57
response method 호환성 개선
...
https://www.xetown.com/qna/576560
2017-04-27 10:37:35 +09:00
conory
8f26b925cf
접근 권한이 걸려 있을 경우 로그인 및 회원 가입이 안되는 문제 수정
...
https://www.xetown.com/qna/574534
2017-04-26 16:11:43 +09:00
Kijin Sung
f7d19ea47c
Fix #785 excessive use of cache in SEO function
2017-04-14 16:16:28 +09:00
bnu
bff80770f1
fix #2064 link 태그 사용 시 self-closing 차이에 따라 뒤에 오는 태그를 head 영역으로 잘못 끌어 올리는 문제 고침
2017-04-12 20:33:59 +09:00
Kijin Sung
1591f8b728
Fix missing default URL during install, especially on SSL
...
https://www.xetown.com/lakepark/560017
2017-04-11 15:59:19 +09:00
CONORY
44d6c8f63f
Merge pull request #786 from conory/pr/permission
...
module.xml <action>에 permission 속성 추가
2017-04-10 15:43:08 +09:00
conory
ddc7d31661
코드 정리
2017-04-10 14:58:31 +09:00
conory
3298946a5e
잘못된 동작 수정
2017-04-08 22:41:01 +09:00
conory
5ad0ee91a5
*-managers 정규식 구체화
2017-04-08 20:12:17 +09:00
conory
1d4437135c
승인 권한 (grant) 구분자 변경
2017-04-08 18:10:30 +09:00