1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-26 10:41:13 +00:00

use escapejs for draft path when render draft page

This commit is contained in:
lian 2019-07-03 16:52:09 +08:00
parent 9bfde5e6ea
commit b6afc03b58

View File

@ -11,9 +11,9 @@
config: { config: {
draftID: '{{ draft_id }}', draftID: '{{ draft_id }}',
draftRepoID: '{{ draft_repo_id }}', draftRepoID: '{{ draft_repo_id }}',
draftFilePath: '{{ draft_file_path }}', draftFilePath: '{{ draft_file_path|escapejs }}',
draftOriginFilePath: '{{ draft_origin_file_path }}', draftOriginFilePath: '{{ draft_origin_file_path|escapejs }}',
draftFileName: '{{ draft_file_name }}', draftFileName: '{{ draft_file_name|escapejs }}',
perm: '{{ permission }}', perm: '{{ permission }}',
author: '{{ author }}', author: '{{ author }}',
authorAvatar: '{{ author_avatar_url }}', authorAvatar: '{{ author_avatar_url }}',