Path encoding for blobs. Fix for #97

This commit is contained in:
Alexander Bayandin 2014-05-24 23:33:54 +04:00
parent c82c94a199
commit c385b1b63c
1 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,7 @@
item.a_attr = { href: '#' }
}
else if (type === 'blob') {
item.a_attr = { href: '/' + repo.username + '/' + repo.reponame + '/' + type + '/' + repo.branch + '/' + path }
item.a_attr = { href: '/' + repo.username + '/' + repo.reponame + '/' + type + '/' + repo.branch + '/' + encodeURIComponent(path) }
}
else if (type === 'commit') {
var moduleUrl = submodules[item.path]
@ -435,4 +435,4 @@
return localStorage.setItem(key, JSON.stringify(val))
}
}
})()
})()