Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Bryan Kaperick
jio
Commits
e41f8e5e
Commit
e41f8e5e
authored
Apr 16, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dav storage allDocs filters wrong filenames now
parent
ef98a460
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
src/jio.storage/davstorage.js
src/jio.storage/davstorage.js
+14
-1
No files found.
src/jio.storage/davstorage.js
View file @
e41f8e5e
...
@@ -214,6 +214,11 @@ jIO.addStorageType("dav", function (spec, my) {
...
@@ -214,6 +214,11 @@ jIO.addStorageType("dav", function (spec, my) {
var
separator_index
=
-
1
,
split
=
file_name
.
split
(
"
.
"
);
var
separator_index
=
-
1
,
split
=
file_name
.
split
(
"
.
"
);
split
.
slice
(
0
,
-
1
).
forEach
(
function
(
file_name_part
,
index
)
{
split
.
slice
(
0
,
-
1
).
forEach
(
function
(
file_name_part
,
index
)
{
if
(
file_name_part
.
slice
(
-
1
)
!==
"
_
"
)
{
if
(
file_name_part
.
slice
(
-
1
)
!==
"
_
"
)
{
if
(
separator_index
!==
-
1
)
{
separator_index
=
new
TypeError
(
"
Corrupted file name
"
);
separator_index
.
status
=
24
;
throw
separator_index
;
}
separator_index
=
index
;
separator_index
=
index
;
}
}
});
});
...
@@ -572,7 +577,15 @@ jIO.addStorageType("dav", function (spec, my) {
...
@@ -572,7 +577,15 @@ jIO.addStorageType("dav", function (spec, my) {
};
};
$
(
data
).
find
(
"
D
\\
:href, href
"
).
each
(
function
()
{
$
(
data
).
find
(
"
D
\\
:href, href
"
).
each
(
function
()
{
row
.
id
=
$
(
this
).
text
().
split
(
'
/
'
).
slice
(
-
1
)[
0
];
row
.
id
=
$
(
this
).
text
().
split
(
'
/
'
).
slice
(
-
1
)[
0
];
row
.
id
=
priv
.
fileNameToIds
(
row
.
id
);
try
{
row
.
id
=
priv
.
fileNameToIds
(
row
.
id
);
}
catch
(
e
)
{
if
(
e
.
name
===
"
TypeError
"
&&
e
.
status
===
24
)
{
return
;
}
else
{
throw
e
;
}
}
if
(
row
.
id
.
length
!==
1
)
{
if
(
row
.
id
.
length
!==
1
)
{
row
=
undefined
;
row
=
undefined
;
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
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