Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3pia
VISPA
VISPA web
Commits
8b7d00c8
Commit
8b7d00c8
authored
Oct 23, 2017
by
Benjamin Fischer
Browse files
FileHandler2: use cleanPath in fullPath(s) functions
parent
b7acb0f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
vispa/static/js/filehandler2.js
View file @
8b7d00c8
...
...
@@ -126,7 +126,7 @@ define([
M
.
clsBib
.
single
=
M
.
clsBib
.
base
.
_extend
({
fullPath
:
function
(
info
)
{
return
(
info
.
pathBase
+
"
/
"
+
info
.
data
.
name
)
.
replace
(
/
\/
+/g
,
"
/
"
)
;
return
Utils
.
cleanPath
(
info
.
pathBase
+
"
/
"
+
info
.
data
.
name
);
},
ext
:
function
(
info
)
{
if
(
!
info
.
data
)
return
;
...
...
@@ -197,7 +197,7 @@ define([
return
(
_items
||
this
.
items
(
info
)).
map
(
function
(
it
)
{
if
(
processing
)
it
.
processing
=
true
;
return
info
.
pathBase
+
"
/
"
+
it
.
name
;
return
Utils
.
cleanPath
(
info
.
pathBase
+
"
/
"
+
it
.
name
)
;
});
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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