Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nicolas PERNOUD
Vestibule
Commits
85168e58
Commit
85168e58
authored
Aug 09, 2020
by
Nicolas Pernoud
Browse files
fix: edge case with content length on encrypted webdavs
parent
8aa1bc6c
Pipeline
#6677
passed with stages
in 2 minutes and 49 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
miscellaneous/bulma/bulma.scss
View file @
85168e58
...
...
@@ -178,3 +178,12 @@ a.navbar-item.is-active {
width
:
95%
;
max-height
:
95%
;
}
.modal-card-head
.delete
{
transition
:
0
.2s
;
}
.modal-card-head
.delete
:hover
{
background-color
:
$nice-red
;
transform
:
scale
(
1
.1
);
}
pkg/davserver/davserver.go
View file @
85168e58
...
...
@@ -468,6 +468,7 @@ func decryptFile(filePath string, key []byte) http.Handler {
func
getTrueSize
(
stream
*
sio
.
Stream
,
header
streamHeader
,
encSize
int64
)
(
int64
,
error
)
{
overhead
:=
stream
.
Overhead
(
0
)
encSize
=
encSize
-
int64
(
header
.
binarySize
())
size
:=
encSize
/
int64
(
sio
.
BufSize
+
overhead
)
*
int64
(
sio
.
BufSize
)
if
mod
:=
encSize
%
int64
(
sio
.
BufSize
+
overhead
);
mod
>
0
{
if
mod
<
overhead
{
...
...
@@ -475,7 +476,6 @@ func getTrueSize(stream *sio.Stream, header streamHeader, encSize int64) (int64,
}
size
+=
mod
-
overhead
}
size
-=
int64
(
header
.
binarySize
())
return
size
,
nil
}
...
...
web/assets/bulma.min.css
View file @
85168e58
This source diff could not be displayed because it is too large. You can
view the blob
instead.
web/index.html
View file @
85168e58
...
...
@@ -32,7 +32,7 @@
<div
class=
"navbar-brand"
>
<div
class=
"navbar-item"
>
<a
class=
"button is-primary is-rounded is-outlined"
href=
"https://www.github.com/nicolaspernoud/Vestibule"
target=
"_blank"
rel=
"noopener noreferrer"
>
<span>
4.3.3
6
</span>
<span>
4.3.3
7
</span>
<span
class=
"icon"
>
<svg
class=
"svg-inline--fa fa-github fa-w-16"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment