Commit graph

183 commits

Author SHA1 Message Date
Kijin Sung
cad4f37485 Reorder debug entries for easy viewing 2022-12-20 10:13:00 +09:00
Kijin Sung
e1f98e573c Fix #1944 add option to display complete call stack for queries 2022-12-19 01:11:43 +09:00
Kijin Sung
064f321c74 Delete unnecessary "error -1" in query error info 2022-09-21 16:26:25 +09:00
Kijin Sung
7e82d37cfa Fix PHP warnings due to unitiated variables #1866 thanks to @Erictoby 2022-02-04 01:41:56 +09:00
Kijin Sung
263dc79090 Use https in AJAX URL if site is accessed over https
https를 사용하지 않는 것으로 설정되어 있더라도 실제로 https로 접속했다면
https를 사용하는 것으로 간주하고, AJAX URL을 https로 생성하도록 합니다.

기대되는 효과:

1. 설정이 잘못되어서 로그인이 되지 않거나 AJAX 요청에 실패할 가능성 제거
2. https 접속이 가능한 사이트라면 최대한 https를 사용하도록 유도
2021-09-13 01:10:36 +09:00
conory
faea821e78 Fix warning in PHP 8.0 2021-07-05 14:19:06 +09:00
Kijin Sung
2c81be51c3 Fix #1704 detect color scheme as early as possible 2021-06-20 02:10:08 +09:00
Kijin Sung
e877b87664 Remove ssl_actions and add rewrite_level to inline JS 2021-01-20 23:55:09 +09:00
Kijin Sung
64baf4e8e3 Remove ssl_actions and add rewrite_level to inline JS 2021-01-20 23:53:58 +09:00
BJRambo
234ad09867 Fix #1460 current_url 값이 ture으로 출력되는 문제 고침 2020-11-11 01:31:50 +09:00
Kijin Sung
8c161bc28d Various fixes to improve PHP 8.0 compatibility
- XmlParser 클래스가 PHP 내장 클래스가 되어버려서 XeXmlParser로 변경
- 함수나 파라미터의 형태가 맞지 않아서 치명적인 오류 나는 곳 수정
- undefined 변수 및 배열 키 다수 수정 (치명적인 오류는 아님)
- 계속 수정중...
2020-10-31 00:25:26 +09:00
Kijin Sung
191cd50c70 Merge branch 'develop' into next 2020-09-07 20:33:04 +09:00
Kijin Sung
36135c0fac Always print the viewport meta tag #1389 2020-09-04 20:21:59 +09:00
Kijin Sung
ffe9cda5e0 Merge branch 'develop' into next 2020-08-29 23:53:31 +09:00
Kijin Sung
82bf017f01 Fix #1389 improve handling of viewport meta tag
- viewport 설정에 빈 값을 저장한 경우 메타 태그를 출력하지 않음
- 단, 아예 설정이 없는 경우(XE 또는 구버전에서 업그레이드한 경우)에는 예외
2020-08-27 21:15:11 +09:00
Kijin Sung
c588d02a22 Remove deprecated xeVid JS variable 2020-07-03 00:54:20 +09:00
Kijin Sung
67dfb3c282 Remove optional SSL 2020-07-03 00:41:59 +09:00
Kijin Sung
f304283fd5 Fix #1249 hide waiting message from crawlers 2020-03-19 00:20:34 +09:00
Kijin Sung
030f27d488 Fix #1228 #1243 thanks to @nemo9l 2020-02-14 16:27:10 +09:00
conory
40e35a9451 add rhymix_alert 2019-12-26 21:04:09 +09:00
Kijin Sung
7b9fe8f7f2 Revert "Fix var_export() not working for stdClass in PHP < 7.3"
This reverts commit 3f7f802585.
2018-12-13 18:59:27 +09:00
Kijin Sung
3f7f802585 Fix var_export() not working for stdClass in PHP < 7.3 2018-12-13 15:22:11 +09:00
Kijin Sung
aac678de48 Explicitly declare noescape 2018-10-10 13:08:24 +09:00
Kijin Sung
a49f2f5f06 Change Context::isAlwaysSSL() to config('session.use_ssl_cookies')
- Main session cookie is httpOnly if use_ssl is true
- SSO cookie is always httpOnly
2018-08-06 01:23:22 +09:00
Min-Soo Kim
25d2e4892a Revert "Example of the cookie option"
This reverts commit 93a35c251b.
2018-08-02 00:35:52 +09:00
Min-Soo Kim
93a35c251b Example of the cookie option 2018-08-02 00:35:27 +09:00
Min-Soo Kim
b62a1322c9 Revert "Merge branch 'develop' into develop"
This reverts commit ec54bbd415, reversing
changes made to 9b12e0a71c.
2018-07-29 11:54:14 +09:00
Min-Soo Kim
6f981318ca Merge branch 'master' into develop 2018-07-24 23:47:55 +09:00
Min-Soo Kim
3bdc896f4e Fix error on the IDN site javascript..
To handle url on the javascript, convert the url to punycode. If not, `isSameOrigin` and return `false` when we compare `location.href` and `request_uri` even though they are same...

On the normal domain (except IDN), they are not affected by this commit.
2018-05-07 01:04:34 +09:00
Min-Soo Kim
f8edfacde2 Refine secure cookie flag
_use_ssl 대신 site_module_info 를 직접 참조하도록 수정.
함수 이름을 조금 더 자연스럽게 수정.
2018-04-28 11:25:15 +09:00
Min-Soo Kim
c1c9a94623 Improve cookie security; Secure flag
SSL 항상 사용 옵션인 경우 쿠키도 이에 맞추어 SSL 인 경우에만 사용되도록 `secure` flag 를 추가합니다.
선택적 SSL 인 경우 SSL 이 적용되지 않은 구간에서도 쿠키를 읽을 수 있어야 하므로, 적용하지 않습니다.
2018-04-24 19:30:38 +09:00
conory
4520a6a2a4 canonical URL이 출력되지 않는 문제 수정 2018-03-12 21:50:52 +09:00
Kijin Sung
17ca61eed3 Fix #832 make the viewport setting customizable
모바일 접속시 <meta name="viewport"> 태그에 들어가는 내용을
시스템 설정 메뉴에서 커스터마이징할 수 있도록 변경함.
2017-11-23 16:54:06 +09:00
Kijin Sung
a400cc4b40 Remove unused file: redirect.html
https://github.com/xpressengine/xe-core/issues/2069
2017-04-14 15:25:22 +09:00
Kijin Sung
9a34341759 Populate CSRF token in some non-member requests as well 2017-03-13 16:41:08 +09:00
Kijin Sung
a3ef122b57 Merge branch 'develop' into pr/csrf-token 2017-03-13 16:35:24 +09:00
Kijin Sung
a2e326a419 Always set xeVid to null 2017-03-13 15:40:03 +09:00
Kijin Sung
e2511a0269 Insert CSRF token using meta tag in common_layout.html
<body> 태그의 속성이나 그 밖의 태그를 사용하지 않는 이유는
<body>가 로딩되기 전에 먼저 AJAX 요청을 시도하는 서드파티 자료가 있기 때문이다.
<head> 상단에 CSRF 토큰을 넣어야 이런 자료에서도 토큰이 누락되지 않는다.

다른 CSM나 프레임워크들도 <head> 상단에 <meta> 태그를 사용하여
CSRF 토큰을 삽입하는 사례가 많으며, csrf-token은 이런 용도로
WHATWG에 공식적으로 등록된 meta name이다.

cf. https://wiki.whatwg.org/wiki/MetaExtensions
2017-03-06 11:46:37 +09:00
Kijin Sung
1cfb83da4d Fix window size not fitting editor when sending message 2016-12-15 00:59:33 +09:00
Kijin Sung
2d54687a52 Add slow remote requests to debug content 2016-06-08 16:15:32 +09:00
Kijin Sung
3fbf94f630 Fix #491 no display of canonical URL on some pages 2016-05-11 15:15:05 +09:00
Kijin Sung
da1b69c6b7 Initial implementation of OpenGraph metadata insertion 2016-05-09 01:36:25 +09:00
Kijin Sung
4290f5110c Add 'finalize' option to getCSSFileList() and getJSFileList(), to be used only by the final layout 2016-05-06 22:01:58 +09:00
Kijin Sung
7298adf855 Include visitor IP address in debug output 2016-03-15 10:57:57 +09:00
Kijin Sung
7b0c24e67c Improve debug settings 2016-03-06 14:13:34 +09:00
Kijin Sung
ac1e86cf39 Fix incorrect passing of SSL action list 2016-02-25 14:26:00 +09:00
Kijin Sung
65517735e0 Clean up common_layout.html and merge with mobile_layout.html 2016-02-17 16:20:57 +09:00
Kijin Sung
32aa19e6f2 Remove unnecessary sitelock template 2016-02-17 15:10:47 +09:00
Kijin Sung
588fefc88f Add slow queries, triggers, and widgets to debug comment output 2016-02-16 11:33:54 +09:00
Kijin Sung
6b4d69bcc2 Remove old debug constants 2016-02-13 11:19:13 +09:00