Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
PUBLIC
/
surfer-okd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5d361bf9
authored
8 years ago
by
Johannes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix handling of paths with spaces
1 parent
f65c7ea8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/files.js
src/files.js
View file @
5d361bf
...
...
@@ -112,7 +112,7 @@ function get(req, res, next) {
}
function
put
(
req
,
res
,
next
)
{
var
filePath
=
req
.
params
[
0
]
;
var
filePath
=
decodeURIComponent
(
req
.
params
[
0
])
;
if
(
!
(
req
.
files
&&
req
.
files
.
file
)
&&
!
req
.
query
.
directory
)
return
next
(
new
HttpError
(
400
,
'missing file or directory'
));
if
((
req
.
files
&&
req
.
files
.
file
)
&&
req
.
query
.
directory
)
return
next
(
new
HttpError
(
400
,
'either file or directory'
));
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
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 post a comment