Added ENFORCE_BASEPATH option, fixes #68
This commit is contained in:
parent
ca4b91a094
commit
35ac89dcb1
5 changed files with 36 additions and 9 deletions
7
dev.html
7
dev.html
|
@ -114,7 +114,7 @@
|
|||
color: #616161 !important;
|
||||
font-weight: 400;
|
||||
display: inline-block;
|
||||
width: 185px;
|
||||
width: 182px;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
cursor: pointer;
|
||||
|
@ -2300,7 +2300,10 @@
|
|||
|
||||
function listdir(path) {
|
||||
$.get(encodeURI("api/listdir?path=" + path), function(data) {
|
||||
renderpath(data);
|
||||
if (!data.error) {
|
||||
renderpath(data);
|
||||
}
|
||||
console.log("Permission denied.");
|
||||
});
|
||||
document.getElementById("slide-out").scrollTop = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue