Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
maarchRM
Commits
bd6f8822
Unverified
Commit
bd6f8822
authored
Jun 26, 2020
by
Jerome Boucher
Browse files
fix(#14228) : Add filter for filename to be windows system compatible
parent
c2235bad
Pipeline
#8543
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bundle/digitalResource/Controller/digitalResource.php
View file @
bd6f8822
...
...
@@ -102,7 +102,7 @@ class digitalResource
$resource
->
fileName
=
$pathinfo
[
'filename'
];
if
(
$withDateTime
)
{
$resource
->
fileName
.
=
"_"
.
(
string
)
\
laabs
::
newDate
(
\
laabs
::
newDatetime
(
null
,
"UTC"
),
"Y-m-d_H
:i:
s"
);
$resource
->
fileName
.
=
"_"
.
(
string
)
\
laabs
::
newDate
(
\
laabs
::
newDatetime
(
null
,
"UTC"
),
"Y-m-d_H
-i-
s"
);
}
if
(
isset
(
$pathinfo
[
'extension'
]))
{
...
...
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