Skip to content

첨부 파일 본문 삽입 시 외부 URL을 포함할 수 있도록 개선#1980

Merged
2 commits merged into
xpressengine:developfrom
sejin7940:insertToContent
Feb 22, 2017
Merged

첨부 파일 본문 삽입 시 외부 URL을 포함할 수 있도록 개선#1980
2 commits merged into
xpressengine:developfrom
sejin7940:insertToContent

Conversation

@sejin7940

Copy link
Copy Markdown
Contributor

ckeditor 에서 파일첨부 후 '본문삽입'을 클릭하면 ( insertToContent )
파일이 업로드 되었던 uploaded_filename 앞에 강제로 window.request_uri ( 도메인 ) 이 붙어서 들어간다

문제는 uploaded_filename 자체가 도메인을 포함하고 있는 경우
( 예를들면 파일서버를 분리해서, 외부서버의 파일주소를 uploaded_filename 이 다 포함하고 있는 경우 )
강제로 붙는 window.request_uri 때문에 http:// 가 두번 나오는 이상한 주소가 강제로 만들어진다

따라서 insertToContent 시, uploaded_filename 에 http:// 또는 https:// 가 있는지 검토해서
없을땐 window.request_uri 를 붙이고, 있을땐 안 붙이게 개선을 했다

파일첨부시, 파일을 외부의 서버로 보내는 기능을 구현하려다보니, 본문추가 기능을 유지하기 위해서 개선

@ghost ghost added the status/keep label Feb 1, 2017
@ghost ghost closed this Feb 1, 2017
@ghost ghost added type/enhancement and removed status/keep labels Feb 1, 2017
@ghost ghost added this to the 1.8.30 milestone Feb 1, 2017
@ghost ghost self-assigned this Feb 1, 2017
@ghost ghost reopened this Feb 1, 2017
@ghost ghost merged commit dc86233 into xpressengine:develop Feb 22, 2017
@ghost ghost changed the title Insert to content 첨부 파일 본문 삽입 시 외부 URL을 포함할 수 있도록 개선 Feb 23, 2017
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants