mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-31 14:42:10 +00:00
encode path for using in URI
This commit is contained in:
@@ -29,9 +29,11 @@ define([
|
||||
|
||||
render: function() {
|
||||
var dir = this.dir;
|
||||
var dirent_path = Common.pathJoin([dir.path, this.model.get('obj_name')]);
|
||||
this.$el.html(this.template({
|
||||
dirent: this.model.attributes,
|
||||
dirent_path: Common.pathJoin([dir.path, this.model.get('obj_name')]),
|
||||
dirent_path: dirent_path,
|
||||
encoded_path: Common.encodePath(dirent_path),
|
||||
category: dir.category,
|
||||
repo_id: dir.repo_id,
|
||||
user_perm: dir.user_perm,
|
||||
|
Reference in New Issue
Block a user